Name

sn_em_connector.EndpointParamsUtil

Description

Utility script to fetch the query parameters fron the endpoint Input Endpoint URL Outpoint JSON object with the URL parameters as key-value pairs.

Script

var EndpointParamsUtil = Class.create();
EndpointParamsUtil.prototype = {
  initialize: function() {
  },
  
  updateAdditionalInfoWithEndpointParams: function(queryParamsObject, additionalInfo) {
  	for (var i in queryParamsObject){
  		//all the queryparams will be prefixed with sn_ and we are fetching only the 1st element in the array.
  		additionalInfo['sn_'+i] = queryParamsObject[i][0];
  	}
  },

  type: 'EndpointParamsUtil'
};

Sys ID

0b9aa9725bf35010a8c48473b881c79e

Offical Documentation

Official Docs: