Schedule.SetURL
---------------

Sets the URL to query when schedule runs.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Schedule](component_Schedule.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Schedule.SetURL"; ScheduleRef; URL ) 

**MBS**( **"Schedule.SetURL";** /\* Sets the URL to query when schedule runs. \*/  
**$ScheduleRef**; /\* The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions.e.g. $ref \*/   
**$URL**) /\* The URL to trigger. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScheduleRef | The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions. | $ref |
| URL | The URL to trigger. |  |

### Result

Returns OK or error.

### Description

Sets the URL to query when schedule runs.  
$$ID$$ in the URL is replaced with schedule ID.  
Queries http/ftp/sftp URLs with CURL, other URLs passed to OS to open.  
### See also

- [Schedule.GetSQL](ScheduleGetSQL.md)
- [Schedule.GetTag](ScheduleGetTag.md)
- [Schedule.GetURL](ScheduleGetURL.md)
- [Schedule.SetSQL](ScheduleSetSQL.md)
- [Schedule.SetTag](ScheduleSetTag.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.5pr3](https://www.mbsplugins.de/archive/2016-10-18/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st October 2016 , last changed 11st October 2016

  
[Schedule.SetTimeStamp](ScheduleSetTimeStamp.md) - [Schedule.StartScriptAfterDelay](ScheduleStartScriptAfterDelay.md)

[HTML Version](ScheduleSetURL.shtml)