Forum Discussion
REST API to apply a retention Label
- Nov 16, 2018
thanks, we are planning to release a REST API which will create the event-based retention by the end of year so stay tune (see this demo we did at Ignite: https://youtu.be/gBNcHJ7ERl8?t=2848
Yes, I did see that it was available through CSOM, but I was trying to figure out what would be the REST endpoint for this. Basically, I was trying to get the field updated from a Flow.
Joe can you please share the end to end scenario you are trying to achieve?
- Joe JamesNov 09, 2018Copper Contributor
cfiessinger I have site with retention Labels published on it. The document library in question uses these labels. There is a default label set as well. Based on the type/content of document users upload they change the label value to a more relevant one.
I was trying to automate some aspects of it by creating a Flow that will apply a specific Label based on lets say value of a column. Flow can call SharePoint Rest APIs easily, and hence the question.
Did not want to pass the call onto an Azure Function or something, but I know that is an option.
- Richard BourkeNov 15, 2018Iron Contributor
Did you ever find out if there is a REST API that could be used for this?
- Joe JamesNov 15, 2018Copper Contributor
Not yet. Could not spend too much time on it yet. But still keen to find it out.