Skip to main content
Participant
April 12, 2023
Answered

[UXP] [SOAP] Unable to get data in scriptResult

  • April 12, 2023
  • 2 replies
  • 1783 views

Hello,

 

I'm using indesign server 2023 with SOAP to send and get back data from documents.

 

Using JSX it worked fine and I was able to get back the data in the response within the <scriptResult> tag.

Since I switched to UXP and idjs the <scriptResult> always comes back empty even though <errorNumber> is 0.

Even a script like the one below or just a "return 1" script does not seem to work for the result.

os = require('os');
app.consoleout(os.release());
script = require('uxp').script;
app.consoleout(JSON.stringify(script.executionContext));
return script.setResult("Hello World");

 

Did anyone successfully use SOAP and got back a response with the correct data ?

 

Thanks for the help

 

 

This topic has been closed for replies.
Correct answer Pavillet26779715bz52

Hi @Jakob Frey i got some answers via another channel, and the answer is : the feature is not implemented yet

It should be in a few months 

 

Indesign server is one of the worst developer experience i've had and this "answer" is just another proof on how little they care about developers.

2 replies

Robert at ID-Tasker
Legend
April 20, 2023

As a workaround - try to use Label functionality - store data in the specified Label of the current document - or application - then read it from the main function.

 

Be aware, that reseting preferences will remove labels saved inside application. 

 

 

Inspiring
April 19, 2023

Same behavior for me.

Can we please get support for this issue?

Pavillet26779715bz52AuthorCorrect answer
Participant
April 20, 2023

Hi @Jakob Frey i got some answers via another channel, and the answer is : the feature is not implemented yet

It should be in a few months 

 

Indesign server is one of the worst developer experience i've had and this "answer" is just another proof on how little they care about developers.

Inspiring
April 20, 2023

Thanks for the information.

 

Yes, I have exactly the same experience.