I have a workflow that assigns a task based on a c...
# suiteflow
p
I have a workflow that assigns a task based on a condition in the opportunity. The task is created but I would like the task to be stored within that opportunity. I tried having the field transaction in the task to have a formula as
{id}
but that did not work. Any idea?
p
transaction is definitely the correct field - i have an Opportunity afterSubmit UE that uses it
taskRec.setValue_({_fieldId: 'transaction', value: tranId_})_;
p
let me try
{tranid}
and see if that corks.
p
That was just my variable name 😛
p
ah. gotcha. crap. so back to square one.
k
{internalid} might work.
p
So {internalid} did not work. I found a suiteanswer (40773) that gives steps on how to do this but I get the following error:
Invalid transaction reference key 16575 for company <NULL>.
Not sure why it is giving me that error. 16575 is the id for the opportunity that i am trying this with.
k
are you doing this aftersubmit?
Are you setting the company field?
You probably need to be doing that.
p
Yes and yes. The company field is set to Entity and the trigger is set to after submit
YES! Got it to work. i changed the order for the field values and added the company first and then the transaction.
k
Ah. That'll do it