guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs) | Community
Skip to main content
June 29, 2021
Solved

guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs)

  • June 29, 2021
  • 2 replies
  • 1569 views

I am trying to call my FDM Service from Rules as below - 

  	guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs, success, failure);
 

 

However, I get the below error on console after this line's execution - 

http://localhost:4502/content/forms/af/my-project/form/jcr:content/guideContainer.af.dermis

 

The service in FDM is giving valid JSON response and even when hitting directly with Postman.

 

When debugging csrf.js, the console error is coming at below lines - 
if (globalToken) {
this.setRequestHeader(HEADER_NAME, globalToken);
send.apply(this, arguments);
return;
}

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pulkit_Jain_

@sg-aem 

I see that the API that you are using already has the callback function(s) so please check once if a simple execute operation call from the Rule editor of an Adaptive Form works for you? This API can be invoked on a button click (how are you invoking the API, BTW)?

Once successful, we can then check the callback function script.

2 replies

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 30, 2021

@sg-aem If you want to have callback use 

guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs, callbackFunction)

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
June 30, 2021

@sg-aem 

I see that the API that you are using already has the callback function(s) so please check once if a simple execute operation call from the Rule editor of an Adaptive Form works for you? This API can be invoked on a button click (how are you invoking the API, BTW)?

Once successful, we can then check the callback function script.