RITM State not Approving, even though inbound action is setup to change it to approved

David White2
Mega Guru

Essentially working on  notifications that include Approve and Reject links to approve adding or removing members from a group.

Have already edited the body of the notification in the workflow to include those links

Set up Inbound email action to change the state to approved when receiving a reply with "Re:-approve" in the subject.

So, I do a test change, add a test user to a test group, hit order now and then go to emails module so that I can preview the HTML body and click the link to test,   Out look comes up, email body and subject looks fine(has watermark in body),  send off email.

 

I see the reply come in, on the email modules

 

but when I go to the Request(which is approved automatically based on price), go to the RITM, and check the approvers tab,  it still says "Requested" and not "approved", because of this.. the stage of the RITM is still in "waiting for approval" instead of "fulfillment".

 

I even added change "Stage" to "fulfillment"  in the inbound action.

I see the process running (inbound action) in the email log for the reply

 

Yet the field is not updating and I can't figure out why,

 

The inbound action is targeting the Requested Item table(since thats where the field we want to change is)

Type is: Reply

and the when to run is set up like i said,  when subject contains Re:-approve

 

Actions are :

 

Approve to Approved

Stage to Fulfillment

 

 

Please help lol

 

Thanks

 

1 ACCEPTED SOLUTION

Michael Fry1
Kilo Patron

Approval emails should use inbound action on Approval table. Then after approval, in your workflow you can change fields on the RITM by using a Set Value activity.

View solution in original post

27 REPLIES 27

'which is what i set for the action as well' - what does that mean?

So when the Update Approval inbound action runs, what happens?

The when to run part of the inbound action says     when "subject" "contains" "Re:-approve"

 

that is what I mean,     

 

When the action ran, nothing changed...the RITM still does not have an approval, and the stage is still "waiting for approval"

Ahhh -  but does that mean you have 2 inbound actions: one for approvals, one for rejections? You shouldn't need anything in the when to run section because the script should contain all you need. Looks something like this:

	if (email.subject.indexOf("approve") >= 0)
		current.state = "approved";

	if (email.subject.indexOf("reject") >= 0)
		current.state = "rejected";

Yeah i've got one inbound action for approval

and one for Rejection

 

So you think, the action was skipped because I had a when to run versus just scripting like you have?

 

 

Do you still have the out of the box one? Disable your other 2 and enable the OOB one and try it.

Not sure if it's because of the when to run actions. Try removing and see if it works then.