Skip to main content
July 30, 2024

Outbound Files through SIC Using UNC

  • July 30, 2024
  • 2 replies
  • 0 views

Need some ideas on how to out bound files from OS shared folders to a network driver using UNC through SIC (we are upgrading to 8.2 from 7.3). We have SFTP through SIC works already, however, this specific process cannot be replaced by SFTP at this time. I have seen discussions and recommendation about inbounding through SIC only.

2 replies

July 31, 2024

I have been able to take a file from the OneStream fileshare and transfer it to an on-prem file share.  Remote SIC business rules are required for this.  I converted the file to a KeyValuePair(Of String, Byte()), and added a key value pair parameter to the SIC remote business rule.

Inside of the remote SIC function, I then used the File.WriteAllBytes("filePath", byte()) function to write the file to fileserver share.  

MZ4Author
July 31, 2024

Thanks! We got some helps from OneStream remote consulting. The final solution is similar to what you mentioned that compressed data bytes passed over the SIF function as an argument.

May 1, 2025

Hi MZ and Atalecki,

Do mind sharing the SIC Function script?

Regards

May 5, 2025

I was able to develop that script, I ma just wondering if you are using any compressing data to make it lighter to transfer to the gateway server?

May 5, 2025

Compression was not needed in my case since the file was too small for that to have a major impact.