web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Workflow Approval via Email

(0) ShareShare
ReportReport
Posted on by 190

I'm working with workflow from Ax 2012 and I'm having problems to configure the approval/ reject process via email. I could configure all the workflow process correctly, and the automatic e-mail sending of all alerts, but I couldn't configure the e-mail model to carry the approval and reject link.
Can anyone give me tips about how to configure the e-mail model or anything else that could liberate the approval/ reject link on the e-mail?

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,053 Super User 2025 Season 2 on at

    Hi Daniel,

    Have you used the whitepaper to configure the approval and rejections? www.microsoft.com/.../details.aspx

  • AlexCMi Profile Picture
    85 on at

    Hi Andrè, Hi Daniel,
    I'm new with AX and I'm trying to configure a workflow approval via mail. I followed the instruction on both the whitepapers: worflow approval via mail (http://www.microsoft.com/en-us/download/details.aspx?id=37002) and configure AX for  companion apps (http://www.microsoft.com/en-us/download/details.aspx?id=36776). I was able to receive the email with the link for approval and reject but whatever is my choice I get redirected in a browser page shows me this error <The AIF service has stopped and can't complete your request. Please try again when the AIF service is running. To check the AIF service, contact your system administrator.
    I don't know what can be the cause of the issue and as well I don't know how to troubleshoot in order to solve the issue. on Internet there is no so much material about it. could you please tell me if you faced this issue or where can I start to troubleshoot?
    Thank you so much


    Regards

    Ale

  • Community Member Profile Picture
    on at

    Alessandro,

    I am getting the same error.  Were you able to resolve the issue?

  • syed baber Profile Picture
    11,633 on at

    Hi zorro,

    Can you please paste the link here which you got in your email, I have had no issue in clicking the link I got in the email and the EP page opened showing the desired option for the workflow item I approved or reject.

    Thanks,

    Baber.

  • Community Member Profile Picture
    on at

    thanks Baber.   link has obviously customer information so cannot really post it, but questions.. will the link then show up the EP page?  Is there any specific on the EP portal that you need to do?  does it need to be outside of your VPN?  Can you post a screenshot of the expected result?

  • Community Member Profile Picture
    on at

    I had this exact same problem. The issue turned out to be that I had made a spelling mistake in my service endpoint name.

    Check and double check that everything is set up correctly in your endpoint list and your mobile connector.

    Also, when you get that error message, check in the event viewer of the server hosting the AOS/connector service. If the message does get to the server, it should throw a pretty detailed error about what went wrong at that time, like "no service listening at endpoint etc etc." This should give you additional info. 

  • AlexCMi Profile Picture
    85 on at

    Hi Zorro

    yes I was able to solve the issue. I spent much time to investigate and in the end I found the ports I set in the mobile connector was wrong :(

    anyway, the error message was not so clear from my point of view.

    the service bus and namespace are quite easy to configure, if you can open the metadata file correctly you just need to put the xml name on Azure and you are done. no additional work is required.

    check in details mobile connector string you paste/write as the are the key of everything

    Hope you will solve soon

  • Community Member Profile Picture
    on at

    Ciao Alessandro

    Thanks a lot for the info. I will give it a try.  

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hello Alessandro,

    If possible can you post the corrective steps, my case is same

    I was able to receive the email with the link for approval and reject but whatever is my choice I get redirected in a browser page shows me this error <The AIF service has stopped and can't complete your request. Please try again when the AIF service is running. To check the AIF service, contact your system administrator.>

    Event log is

    The requested endpoint is not available when calling EmailService,ApplyUrlAction, Action Approve, Workflow document ID{98639CCA-6EE3-4E93-A621-65EA5C163D25}, user afa337332bf7881e882ad3d46915ca61c1ee9eb185fbcc541a2b9c6018161e53

    System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.tcp://google-microsoft-tst:8201/DynamicsAx/Services/EmailApprovalsServices that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

    Server stack trace:

      at System.ServiceModel.Channels.ConnectionUpgradeHelper.DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, Uri via, String contentType, TimeoutHelper& timeoutHelper)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)

      at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)

      at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at Microsoft.Dynamics.Framework.RapidStart.Connector.Modules.AXMobile.Proxies.v3.SysWorkflowApprovalService.applyUrlAction(SysWorkflowApprovalServiceApplyUrlActionRequest request)

      at Microsoft.Dynamics.Framework.RapidStart.Connector.Modules.AXMobile.Proxies.v3.SysWorkflowApprovalServiceClient.applyUrlAction(CallContext CallContext, String _action, Guid _workItem, String _userId, String _workflowComment)

      at Microsoft.Dynamics.Framework.RapidStart.Connector.Modules.AXMobile.Business.AxEmailServiceHelper.<>c__DisplayClass1.<ApplyUrlAction>b__0()

      at Microsoft.Dynamics.Framework.RapidStart.Connector.Modules.AXMobile.ServiceAction.Invoke[T,U](AxServiceActionDelegate`1 action, ClientBase`1 client)

      at Microsoft.Dynamics.Framework.RapidStart.Connector.Modules.AXMobile.EmailService.ApplyUrlAction(String action, String workflowDocumentId, String userId, String workflowComment)

    This could be because the AOS is not running / The server where AOS installed is down / Workflow inbound port is de-activated / Connector service is down

  • community Profile Picture
    141 on at

    hi we receive the same massage but not regular after some time when we approve the document is approved,

    what could be wrong???

    The AIF service has stopped and can't complete your request. Please try again when the AIF service is running. To check the AIF service, contact your system administrator.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans