Skip to Content
0

How to send notification to external URL?

Feb 22, 2017 at 12:35 PM

87

avatar image

Hi all,

When the Outbound Delivery is created i have to send the created delivery ID to an external URL. I have tried to create External Web Service Integration and the scenario then the arrangement but i'm getting error when calling the WebServiceUtilities.ExecuteRESTService(ScenarioName, ServiceName, HttpMethod, HttpResource, URLParameter, HeaderParameter, ContentType, Body).

Am i missing something? Can somebody help me how to solve it?

Thanks,

Hunor

//URL: https://a.b.net/c.php
var ScenarioName = "CommunicationScenarioDefinition";
var ServiceName = "ExternalWebServiceIntegration";
var HttpMethod = "POST";
var HttpResource = "";
var ContentType = "";
var Body = "";
var HeaderParameter : collectionof NameAndValue;
var URLParameter : collectionof NameAndValue;
var URLParameterEntry : NameAndValue;


URLParameterEntry.Name = "one";
URLParameterEntry.Value = "1";
URLParameter.Add(URLParameterEntry);
WebServiceUtilities.ExecuteRESTService(ScenarioName, ServiceName, HttpMethod, HttpResource, URLParameter, HeaderParameter, ContentType, Body);
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Hunor Bartos Feb 27, 2017 at 06:28 AM
0

I have resolved this with the following steps:

  • Creating External Web Service Integration: Web Service Type: REST and adding the given URL
  • Creating Communication Scenario Definition: Web Service Type: REST and adding the created custom outbound service
  • Creating the Communication Arrangement: with the created wsid and csd

Calling the WebServiceUtilities.ExecuteRESTService() in the script file

Share
10 |10000 characters needed characters left characters exceeded