cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh Context on transaction start - API

Solved
Frequent Contributor

Refresh Context on transaction start - API

Hi Community,

We are using VBScript in our external macros (For example: website generation script). If the private workspace is already existed, and if we start the script with same user, it si not taking latest changes.   Do we have some API method in VBScript that refreshes the context (loading other user's dispatched changes) of a user immediatly after starting the transaction.

 

Thanks for your help.

 

 

 

Colruyt Team
2 Replies
MEGA

Re: Refresh Context on transaction start - API

Hello Colruyt Team

 

When connecting with API in private workspace, you use an object MegaTransaction.

Several methods are available:

  • Dispatch: to make the workspace public
  • Abort: to discard the workspace
  • Refresh: to refresh the workspace (without dispatching it)

See also this KB http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=501D0000000nX4YIAU

 

Jerome
Highlighted
MEGA Partner

Re: Refresh Context on transaction start - API

Hi Jerome

 

How can we refresh a transaction from the context of a Workflow Action using the existing transaction, rather than creating it?