Using the IntegrationScheduleNow Web Method
3 min
runs a predefined integration job this web method adds the integration job to the integration queue, where it will be executed by the next available integration processor the response object returned from this web method contains the recid of the integration job that was successfully scheduled request syntax frsheatintegrationschedulenowresponse integrationschedulenow(string sessionkey, string tenantid, string integrationname) parameters sessionkey the session key from the connect web method tenantid the tenant for which the session is created the web method searches for the tenant id in the tenanturl field in the business object for the tenant in the configuration database (called configdb) the tenant record must be in the active state for the authentication to succeed integrationname the name of the integration job return value frsheatintegrationschedulenowresponse class, defined as follows public class frsheatintegrationschedulenowresponse { public string status {get; set}; public string exceptionreason {get; set}; public string integrationqueueid {get; set}; } the frsheatintegrationschedulenowresponse class has the following fields status contains a status indicating whether the web method successfully retrieved the list of roles for the current user if the session key (returned from the connect web method) is valid, this field returns a value of success exceptionreason contains exception information, if the application throws an exception when running this web method integrationqueueid contains the recid of the integration queue job that was successfully scheduled example frsheatintegrationschedulenowresponse integratonresponse = frsvc integrationschedulenow (sessionkey, tenantid, integrationname); string recid = string empty; if (integratonresponse status == "success") { recid = integratonresponse integrationqueueid; console writeline(string format("the integration queue job with recid has been successfully scheduled to run now", recid); }
