RightFax COM API --> Web API conversion setting UniqueId
I'm converting a COM API client to WebAPI, and encountering a problem setting UniqueId when sending a fax.
In COMAPI we would create a Fax Object, add attachments and set the fax.UniqueId, add attachments, set phone and send
RFCOMAPILib.Fax fx = faxServer.CreateObject[RFCOMAPILib.CreateObjectType.coFax];fx.UniqueID = mps.Ssendid;
fx.Attachments.Add(tiffName, RFCOMAPILib.BoolType.False);
fx.UniqueID = "ourJobId";
fx.ToFaxNumber = "5551212";
…
fx.Send();
In WebAPI we create a SendJob, set the same parameters except UniqueId which is not a property of SendJob. So after we PUT the SendJob, we retrieve the Documents for the SendJob and PUT the Document back to the WebAPI.
Well, it turns out I can set the the FolderId, but the UniqueId does not get set, and I can't add Tags with the Document PUT either.
Any ideas how to set a value on the outbound fax so when I come back to review the status of the Faxes (Documents) I can get my key "outJobId" back?
Best Answer
-
This forum is for CLOUD FAX and NOTIFICATIONS.
However we reached the respective team and below is their reply
In the SendJob, the Tags dictionary can be used to attach custom tags to a job. Tags are copied to every document created by that job, so you can look for those tags in documents to related them back to the SendJob.
Prabhakaran R
OpenText1
Answers
-
This forum is for CLOUD FAX and NOTIFICATIONS.
However we reached the respective team and below is their reply
In the SendJob, the Tags dictionary can be used to attach custom tags to a job. Tags are copied to every document created by that job, so you can look for those tags in documents to related them back to the SendJob.
Prabhakaran R
OpenText1 -
And adding one particular Tag to the the SendJob, UniqueID, propogates to the Documents.UniqueID.
I haven't looked at the Document.Tags yet, adding the UniqueID Tag to the SendJob
SendJob.Tags.Add("UniqueID", "myuniqueid");
before POSTing the SendJob, results in the Document.UniqueID being updated to "myuniqueid".
Can the respective team let me know if these backdoors are documented anyplace, or do we just have to ask the right people?0 -
Below is the reply from the respective team.
Here's a list of SendJob tags that provide useful functionality:
FromNameFromVoiceNumber
FromFaxNumber
BillingCode1
BillingCode2
Notes
Comment
Comments
CoversheetNotes
CoversheetComment
FromPhoneNumber
CoversheetFineMode
FineModeBody
FromCompanyVoiceNumber
FromCompanyFaxNumber
UseSmartResume
CreatePdfImage
CityState
RecipientFaxId
AutomaticallyDelete
UseCertifiedDelivery
NotificationAddress
UseCheapRates
UniqueId
I thought these tags were documented in the API swagger docs; if not, they should be added.
Any more queries Please raise a ticket to Support Team.
Prabhakaran R
OpenText1
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 149 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 181 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories