Need help with the following in getting the URL, while trying to trigger a workflow.
I keep gettign the error "TypeError: executionContext.getClientUrl is not a function"
If is try also with "var url = executionContext.getContext.getClientUrl();" i get this error: TypeError: Cannot read property 'getClientUrl' of undefined
function RunCloseCaseWorkflowsTwo(executionContext) {
var resolution = executionContext.getAttribute("xxx_resolution").getValue();
var resolutionSummary = executionContext.getAttribute("xxx_resolutionsummary").getValue();
if (resolution != null && resolutionSummary != null) {
var recordId = executionContext.PrimaryEntityId;
var workflowId = 'B9787009-353D-4BEA-8C82-752006F77E5E'
var url = executionContext.getClientUrl();
if (url != null) {
var request = ""
""
Any help is apprecaited.