Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Additional Owners Script

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
445 Views, 3 Replies

Additional Owners Script

I have a pick list field with all users as the selection list called "TASK_ASSIGNED_TO"

I use item.master.additionalOwners.push(item.TASK_ASSIGNED_TO); and I get an error.

 

What am I doing wrong?

 

3 REPLIES 3
Message 2 of 4
broepke
in reply to: Anonymous

I'm not on my computer right now but chances are that you are just pushing just the name of the user as text and not the user object. Take and convert the user name into the user object and push that. I actually think there is a sample script doing this as part of the supplied libraries. If not let us know and we'll help you out.


Brian Roepke
Director, Analytics & Insights
Message 3 of 4
Anonymous
in reply to: broepke

Yes I thought that might be the case, I also tried 

var user = item.TASK_ASSIGNED_TO;
var usr = Security.loadUser(user);
item.master.additionalOwners.push(usr)

without any luck, the output of this is all null

some help would be apreciated

 

I also could not see the library script you refer to

 

thanks again

Message 4 of 4
michelle.stone
in reply to: Anonymous

James - right now there isn't a way to get the user object from the picklist.  To add additional owners the record needs to be updated manually, but it's a known issue and being worked to allow this through scripting.

 

(and OT, but your Advanced Print View stuff will be looked at soon!  Saw the case come in and someone will look at it this week).

 

Thanks,

Michelle



Michelle Stone
Technical Marketing, PDM & PLM
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report