Fernando
Fernando

Reputation: 433

REST API - Attach a file to an AP Credit Adjustment via key fields

I am trying to attach a file to a Credit Adjustment via REST API by indicating the key fields.

For a regular Bill, this PUT request is successful:

https://{URL}/entity/Default/18.200.001/Bill/Bill/003838/files/Attachment Test 2.pdf

However, I am having issues identifying how should the Key1 be changed for Credit Adjustments. I have tried a series of combinations w/o success.

Thanks.

Upvotes: 0

Views: 123

Answers (2)

Kyle Vanderstoep
Kyle Vanderstoep

Reputation: 771

I know Chris already answered but I wanted to share that you can find these values for any other drop down key field by opening a record of the doc type you want and looking at the URL

enter image description here

Upvotes: 1

Chris H
Chris H

Reputation: 765

Try this

http://localhost/YourERP/entity/Default/20.200.001/Bill/ACR/[RefNbrHere]/files/EL Paso Texas.txt

Be sure that your file is included in the payload

enter image description here

Upvotes: 0

Related Questions