Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am accessing liferay services in C#.NET. I need to setup attributes field of serviceContext parameter when calling a service e.g. /dlapp/update-file-entry
I am able to set workflow action using the below format:
C#
formData.Add(new StringContent(status + ""), "serviceContext.workflowAction");


but don't know how to set value of an attribute e.g. setting fileEntryTypeId for a txt file to RichText

I've tried below format, but it is not working

C#
formData.Add(new StringContent("211990"), "serviceContext.attributes.fileEntryTypeId");


kindly provide any pointers, help in this regard

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900