What I am missing? Seems like something simple. I had this concept working and now for some reason, it isn't, even with simple functions like these.
The WebHook calls the module and then the function:
I am not seeing the file get created nor the Note added to the order.
The WebHook calls the module and then the function:
Code:
<MvELSEIF EXPR = "{ g.Module_Function EQ 'test_it' }"> <MvFUNCTIONRETURN VALUE = "{ test_it( l.module ) }">
Code:
<MvFUNCTION NAME = "test_it" PARAMETERS="module var" STANDARDOUTPUTLEVEL = "html,text,compresswhitespace"> <MvASSIGN NAME = "l.order_id" VALUE = "{ s.json_data:id }"> <MvASSIGN NAME = "g.FileName" VALUE = "{ 'mylogfile.txt' }"> <MvIF EXPR = "{ NOT fexists(g.FileName) }"> <MvASSIGN NAME = "g.FilenameReturn" VALUE = "{ file_create(g.FileName, 'data', l.notetext ) }"> <MvELSE> <MvASSIGN NAME = "l.notetext" VALUE = "{ g.Module_Function $ '|' $ l.order_id $ '|Overwrite|' }"> <MvASSIGN NAME = "g.FilenameReturn" VALUE = "{ file_overwrite(g.FileName, 'data', l.notetext ) }"> </MvIf> <MvCAPTURE VARIABLE = "l.addnote_XML" STANDARDOUTPUTLEVEL = "text, compresswhitespace"> <MvEVAL EXPR = "{ ' <Note_Add order="' $ l.order_id $ '">' $ l.notetext $ '</Note_Add>' }"> </MvCAPTURE> <MvASSIGN NAME = "l.settings:provision:xml" VALUE = "{ trim(l.addnote_XML) }"> <MvDO FILE = "{ g.Module_Feature_PRV_AD }" NAME = "l.settings:provision:result" VALUE = "{ PRV_Action_ProvisionStringData(l.settings:provisio n:xml) }"> </MvFUNCTION>
Comment