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

Avatar

Avatar
Springboard
Level 1
gargrohan
Level 1

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
Top badges earned
Springboard
Establish
Validate 1
Ignite 1
Give Back
View profile

Avatar
Springboard
Level 1
gargrohan
Level 1

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
Top badges earned
Springboard
Establish
Validate 1
Ignite 1
Give Back
View profile
gargrohan
Level 1

29-06-2021

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;
}

 

gargrohan_0-1624956644763.png

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

87 likes

Total Posts

89 posts

Correct reply

43 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile

Avatar
Affirm 25
Employee
PulkitJain
Employee

Likes

87 likes

Total Posts

89 posts

Correct reply

43 solutions
Top badges earned
Affirm 25
Boost 50
Give Back 10
Establish
Boost 25
View profile
PulkitJain
Employee

29-06-2021

@gargrohan 

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.

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

29-06-2021

@gargrohan If you want to have callback use 

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