Home > Forum > Actions > Sharepoint with dynamic URL based on a form field

Sharepoint with dynamic URL based on a form field
0

Hello all,

I want to set up an action to Add a new list element in a Sharepoint list where my URL will be different based on a form field.

But when I'm selecting the list where I want to add my new elements, we can only choose the ones in that site content.

Does anyone have any idea on this?
Thank you all!!!

MVP

Hi Andreia,

the only option I see is to create one action for each possible list and set an execution condition.
The default action can not simply use a dynamic URL. The reason for this is quite simple, the internal field names can differ in each list and than it would break.

You could use REST to achieve this:
https://stuartmccoll.github.io/posts/2020-06-18-creating-list-items-with-sharepoint-rest-api/

Personally I would use the first approach, if there is only a two digit number of lists. :)

If I'm wrong I would be glad to be corrected. :)

Best regards,
Daniel