Hi,
I'm trying to use the sxapiSASubmitReportV2 in a workflow, and send a report via email with it. I have used it in the past, but I was printing the report directly to a printer. Now that I'm trying to get the report as a email, I cannot get it. Whenever I try to make the call I get a response 200 with the following:
{
<span class="hljs-attr">"response": {
<span class="hljs-attr">"cErrorMessage": "",
<span class="hljs-attr">"generatedReportName": "72080372"
}
}<br /><br /><span style="font-family:inherit;">of course the report name changes everytime. Does anyone ever tried to use that API call with a email output type? Help would be greatly appreciated. Here is an example of a API call that I have tried:<br /><br />
{
"request": {
"companyNumber": 1,
"operatorInit": "sys",
"reportName": "dcscn",
"outputType": "e-mail",
"outputName": "E-Mail",
"printRangesAndOptions": false,
"demandFlag": true,
"faxTo1": "",
"faxTo2": "",
"faxFrom": "",
"faxComment": "",
"faxPhoneNumber": "my.email@test.com",
"tRptrange": {
"t-rptrange": []
},
"tRptoptionsV2": {
"t-rptoptionsV2": [{
"optionsSeq": 1,
"optionNm": "Source File Name",
"optDef": "test.csv",
"editType": "a",
"orequirFl": true,
"ofLength": 99
},
{
"optionsSeq": 3,
"optionNm": "Import ID",
"optDef": "testt",
"editType": "a",
"orequirFl": false,
"ofLength": 8
},
{
"optionsSeq": 4,
"optionNm": "Admin ID",
"optDef": "PTM",
"editType": "a",
"orequirFl": false,
"ofLength": 8
},
{
"optionsSeq": 6,
"optionNm": "Update? (No-Validate & Report Only)",
"optDef": "No",
"editType": "q",
"orequirFl": false,
"ofLength": 3
}
]
},
"tSapblist": {
"t-sapblist": []
},
"tInfieldvalue": {
"t-infieldvalue": []
}
}
}
<span style="font-family:inherit;">
<br /><span style="font-family:inherit;">I have tried numerous combinations with the 'outputType' and 'outputName' fields also.<br /><span style="font-family:inherit;">Thank you<br /><br /><br /><br />