Retrieving Attachments
Retrieving attachments
Get single attachment and list of attachments
Attachments are retrieved like a standard resource - the difference is in their optional fields and their response :
pepperi.api.attachments.get( { key:{UUID: ""}, fields:["UUID", "URI", "URL"]} )
Returns:
{ UUID : "659a8f38-9f8a-4286-b3dd-1973dd8c35b2",
URI : ""
URL: "" }
Getting list of attachments :
pepperi.api.attachments.search (
{
fields:["UUID", "URI", "URL"],
filter: { ApiName: "URL", Operation : "Contains",
Values : ["MyItem"]} ,
}
);
Returns:
{success: true, objects:
[ {UUID: "aefb523e-74ac-4041-8bb1-a76a3b5e78d8" , URI:"" ,URL:"" },
{UUID: "aefb523e-74ac-4041-8bb1-a76a3b5e78d8" , URI:"" ,URL:"" }
] }
Last updated
Was this helpful?