Cancel
Showing results for 
Search instead for 
Did you mean: 

Approval User map attr

Solution Partner Builder Solution Partner Builder
Solution Partner Builder

Hi there,

 

Anybody knows how to map approval user like a approval date?

 

I tried copy this:

"Approval_Date" : ItemRevision.Job.SIGNOFF(Designer).decision_date /master=iman /description="Approval_Date"

 

And map this:

"Approval_User" : ItemRevision.Job.SIGNOFF(Designer).decision_user.id /master=iman /description="Approval_User"

 

But it isn't works.

 

TC 11.4 | NX 12.0.1

5 REPLIES

Re: Approval User map attr

Siemens Honored Contributor Siemens Honored Contributor
Siemens Honored Contributor

I tried copy this:

"Approval_Date" : ItemRevision.Job.SIGNOFF(Designer).decision_date /master=iman /description="Approval_Date"

 

And map this:

"Approval_User" : ItemRevision.Job.SIGNOFF(Designer).decision_user.id /master=iman /description="Approval_User"


From what I'm reading, the correct syntax (for NX 12) appears to be:

 

"Signoff_User" : ItemRevision.Job.SIGNOFF(<release-level-name>,<role-level>).group_member.user.user_id  /master=iman /description="Signoff user"

Regards, Ben

Re: Approval User map attr

Solution Partner Builder Solution Partner Builder
Solution Partner Builder

Hi @BenBroad

 

I've been using the syntax below:

 

"Signoff_User" : ItemRevision.Job.SIGNOFF(Designer).group_member.user.os_username /master=iman /description="Signoff User"

 

So it worked fine, but now it doesn't works and I don't know why, I read again your answer and I don't know what is "release-level-name". Could you explain me?

 

Bauler

NX12 | TC 11.4 | Win10

 

Re: Approval User map attr

Siemens Honored Contributor Siemens Honored Contributor
Siemens Honored Contributor

Hi @bauler,

 

What happened between when it worked and now?  For example, did you upgrade Teamcenter or NX?

 

Regards, Ben

Re: Approval User map attr

Solution Partner Builder Solution Partner Builder
Solution Partner Builder

I only created a new role on Engineering Group. So this group have two roles "Designer" and "Engineer".

Re: Approval User map attr

Siemens Honored Contributor Siemens Honored Contributor
Siemens Honored Contributor

So it worked fine, but now it doesn't works and I don't know why, I read again your answer and I don't know what is "release-level-name". Could you explain me?


It's the name of the task that was reviewed.  For example:

 

"MATERIAL_SIGNOFF_USER" : ItemRevision.Job.SIGNOFF(Requirement Review,Designer).group_member.user.user_id  /master=iman /description="Materials signoff user"
"CHECKER" : ItemRevision.Job.SIGNOFF(Checker Review,Checker).group_member.user.user_id /master=iman /description="Checked By"

 

Does that help? Regards, Ben