Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

Call A Default Precedent Empty Call A Default Precedent

Mon 27 Jan 2020 - 17:41
Hi Mike,
The GetDefaultPrecedent method first parameter is the document type.
The document type for Telephone Note Out is TELEPHONENOTE. Please try the following code:
Code:

FWBS.OMS.Precedent precedent = FWBS.OMS.Precedent.GetDefaultPrecedent("TELEPHONENOTE", null);
FWBS.OMS.PrecedentJob newJob = new FWBS.OMS.PrecedentJob(precedent );

//there is no need to call GetPrecedent. The precedent object can be passed into PrecedentJob.

Regards Richard
_________________________________________________________________________________________________________________________
thanks for your reply. The correct precedent now opens. Can you tell me where I can find a list of the correct 'Default' precedent type codes.
In precedent manager Default Outward Telephone Note has a type of "Telephone Note Out", I can't see TELEPHONENOTE anywhere
thanks
_____________________________________________________________________________________________________________________
The document types exist in the Admin Kit --> Configurable Types
or select * from dbDocumentType
Back to top
Permissions in this forum:
You cannot reply to topics in this forum