Question

7
Replies
6419
Views
ThomasS6101 Member since 2015 1 post
EY
Posted: 3 years ago
Last activity: 3 years 1 month ago
Closed
Solved

Sending REST call with attachment

Hi,

I am currently implementing a connection to a REST service and I have to send a file with the POST request. Based on other PDN articles, I learned, that I have to specify the properties .pyAttachValues(1), .pyAttachNames(1), .pyAttachTypes(1), .pyAttachFileNames(1)

The example REST request using curl is the following: curl "-F images=@<SourceFileName>.pdf" <URL>

After calling the REST method with this setting, the response from the server is <error>Image list is empty</error> but I am expecting something like {"redirect": "/manage", "submission": "10"}

Please see also attached the screenshot of my rule. All parameter in the connector request method are empty. Do I have to specify anything here? I am currently using Pega 7.3 Platform with Pega PV 7.31 on top.

Thanks and best regards,

Thomas

Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn