Hi Pranjit,
Unfortunately I did this in the client's environment and I didn't have a copy of the process with me.
Here are one sugestion with we can access the old environment from the new one using SFTP.
You can use this querie to now and select all messages and mailbox there are, based on this you can create a xml that you can use as input to a bp that will ran on the new enviroment:
select PATH, MESSAGE_NAME
FROM MBX_MESSAGE, MBX_MAILBOX
WHERE MBX_MESSAGE.MAILBOX_ID = MBX_MAILBOX.MAILBOX_ID
This new bp will open a session of sftp.
Create a loop that will do the following options:
sftp cd to the mailbox PATH
get the message_name
add the document got with the get command to the PATH message_name using mailbox add message
release the first ocurrence of xml and repeat the operation until finish the xml elements.
This approach will be more simple than the first cenario I comment to you.
I hope this helps you.
Regards
Bortoletto
------------------------------
Ricardo Bortoletto
------------------------------
Original Message:
Sent: Thu June 11, 2020 08:32 AM
From: Pranjit Biswas
Subject: Help / Guidance needed to move mass mailbox messages from On-prem to corresponding Cloud mailboxes
Thanks Ricardo..can you share the code sample for the same ?
Original Message:
Sent: 6/11/2020 8:13:00 AM
From: Ricardo Bortoletto
Subject: RE: Help / Guidance needed to move mass mailbox messages from On-prem to corresponding Cloud mailboxes
Hi Pranjit,
Here we create on flow data extract a message from mailbox and sftp that message for a new environment.
Regards,
Bortoletto
------------------------------
Ricardo Bortoletto
Original Message:
Sent: Wed June 10, 2020 04:05 AM
From: Pranjit Biswas
Subject: Help / Guidance needed to move mass mailbox messages from On-prem to corresponding Cloud mailboxes
Problem Statement -
We are working on cloud migration for our Sterling B2Bi 5.2.6.1 version on AWS. Now we mostly use SFG for file transfer to external partners. There are lot of mailbox messages (mostly sitting on consumer mailboxes) that are yet to be extracted by TP. We need to move / migrate those data files into corresponding cloud mailboxes so that after cutover, the files are available to the external TPs.
Please suggest different options available for smooth migration of data from on-prem to cloud where we are talking in 1000s of messages
Let me know if you need more information.
------------------------------
Pranjit Biswas
------------------------------
#SupplyChain
#B2BIntegration