Forum Stats

  • 3,851,401 Users
  • 2,263,971 Discussions
  • 7,904,697 Comments

Discussions

FDMEE Email process status code

user17
user17 Member Posts: 86
edited Nov 29, 2015 8:28PM in Financial Data Management

Hello all,

What is the right way to get the process status code in an event script for email notification on successful export? Here I am looking to get the process status code instead of expstatus value (1) which is true for a successful export. As per the tlogprocess 21 is the process status code returned for a successful export



Help Appreciated!!

if fdmContext[EXPSTATUS] == "21":

OR

stat = fdmAPI.getProcessStates(fdmContext["LOADID"])

expStatus = str(stat["EXPSTATUS"])

if expStatus == "21":

Tagged:

Best Answer

  • user17
    user17 Member Posts: 86
    edited Nov 29, 2015 8:28PM Answer ✓

    Hi @Francisco Amores,

    I modified my code little bit with the process status parameter. Can you let me know whether is this the right way of returning process status value for successful export?

    stat = fdmAPI.getProcessStates(fdmContext["LOADID"])

    expStatus = str(stat["PROCESSSTATUS"])

    if expStatus == "21"

Answers

This discussion has been closed.