URL Forms - Default Entity Values

Hello!

Creating this post as I couldn’t find any previous posts about this issue.

I’m creating a URL form to create timelogs linked to a specific task. I’ll be using it as a URL Widget to have a easily accessible creation form on a custom page.

This tutorial:

https://help.autodesk.com/view/SGSUB/ENU/?guid=SG_Administrator_ar_display_options_ar_url_pages_widgets_html

addresses multi entity fields, but it doesn’t address ever populating the ‘Link’ field.

Currently, my URL looks like this (##### being site name/project name):

https://#####.shotgunstudio.com/new/TimeLog?project=#####&defaults={%27entity%27:[{%27id%27:97087,%27type%27:%27Task%27}]}

and without the url codes for special characters:

https://#####.shotgunstudio.com/new/TimeLog?project=#####&defaults={“entity”:[{“id”:97087,“type”:“Task”}]}

But it’s resulting in invalid JSON, and when I change it up to an alternate approach, it results in a system error.

I’m wondering if anyone has attempted a similar thing!
Otherwise, I have a current support ticket open with Shotgrid, so once we find a solution I’ll post it as a reply.

Thanks!

2 Likes

Little update:

"The error you’re seeing is actually expected behavior when trying to set URL parameters for the User field. Your approach is correct, but that field is not currently optimized to work with this functionality. In my testing, I confirmed that you are able to use URL parameters for the Date, Duration, Description, and Project fields, but Users and Links will need to be manually selected. "

So confirmed these entities just don’t work when populating URL fields. An internal request has been made, so hoping this gets implemented soon!

3 Likes

Thanks for the update :slight_smile:

1 Like