Discussions

Ask a Question
Back to all

Able to update ApStatusId using Jupyter but not Alteryx

Hi,

I used the below code in Jupyter to update ApStatusId

update_payload = {
'Properties': ['Id', 'ApStatusId'],
'Entity': {
'ApStatusId': 6,
'Id': 11091
}
}

As there are many Id's to be updated I tried this in Alteryx based on the sample code provided in the below link
https://documenter.getpostman.com/view/19494308/UVz1Mrqt

'{"Command":{"WorkOrderid":' + ToString([WOID]) + ',"VendorInvoiceStatusId":' + ToString([ApStatusId]) + '},"RequestId":"' + [RequestId] + '"}'

Could you guide me for any modifications with the code and procedure?

Thanks

Nakul