How to get Siebel attachment as file in Workflow

You might need to extract a specific file from Siebel Attachments or want to attach that file in Email as attachment. To achieve that Siebel provide a vanilla business service which will get file and return its path.

  • Prepare the workflow and drag drop the Business Service step on workflow canvas.
  • Open properties and set the as below:
    • Business Service Name: FINS Industry BC Facility Service
    • Business Service Method: GetFile
  • Now go to "Multi Value Property Window" and add the below Input Arguments:
    • AttachmentId > Row Id of specific attachment which you want to get as file.
    • BusObjName > Business Object name in which Attachment Business Component is present.
    • FileBusCompName > Attachment Business Component Name.
    • FileNameField > Attachment Name Field. If you are not sure which field is in your case, query "FILE_NAME" in Business Component Column and use that Field Name which query will return.
    • RootBusCompName > If Attachment Business Component is child set the name of Primary Business Component of Business Object defined previously.
    • RowId > If Attachment Business Component is Primary Business Component of Business Object pass the Row Id of specific attachment otherwise Row Id of Parent Business of Attachment Business Component.

gf01
 

  • Now add the Output Arguments:
    • create or use existing process property and set as below shown in screen shot:
gf02


  • When runing the workflow on Web Client (Server) attachment this Business Service will save the attachment on below path:
    • C:\Siebel\xx.0.0.0.0\ses\siebsrvr\temp\S-WEB-APP_8364_9620_0_Attachment Name.pdf
  • On Dedicated Client path will be:
    • c:\Siebel\xx.0.0.0.0\Client\temp\S-WEB-APP_9928_5760_0_Attachment Name.pdf


You might get error: Field "FileExt" does not exits in Attachment Business Component. For resolving your need to query "FILE_EXT" in Column. Either make clone of that field and set name to "FileExt" or rename that field to "FileExt".

← Back to Home

Comments

Post a Comment