Skip to Content
Author's profile photo EDGAR MARTINEZ

Pass intent parameter for Fiori Launchpad on SAP Cloud Platform – Portal

Hello there,

It has been some time since I started looking for a solution on how to pass an intent parameter inside the Fiori Launchpad hosted on SAP Cloud Platform Portal.

I was inspired to write this blog and I was hoping to make a helpful answer also for this thread:

Intent Parameter is not passed in URL for Fiori Launchpad on Cloud Portal

(I could not reply here since this a archived question).

So, here is our scenario:

We have a Fiori Launchpad Portal, and we have some apps deployed in it:

 

Here we can see we have specified a parameter for the intent navigation, in this case it is called “mandt” with a value of 500.

Next, we could retrieve this parameter value by writing some code inside the init method of our app Component:

// Get mandt parameter
			sap.ui.getCore().AppContext = {};
			sap.ui.getCore().AppContext.sCurrentMandt = "100";

			var oComponentData = this.getComponentData();

			if (oComponentData && oComponentData.startupParameters && oComponentData.startupParameters.mandt && oComponentData.startupParameters
				.mandt.length > 0) {
				sap.ui.getCore().AppContext.sCurrentMandt = oComponentData.startupParameters.mandt[0];
			}

After redeploying our app, we can see the following object (and our parameter value) when we open the app from the Launchpad:

 

I hope this blog might be helpful.

Thank you!

 

Assigned tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Moya Watson
      Moya Watson

      Thanks a lot for taking the time to share this tip, Edgar!

      Author's profile photo EDGAR ADRIAN MARTINEZ ARCE
      EDGAR ADRIAN MARTINEZ ARCE
      Blog Post Author

      Thanks, Moya, for your kind words! I feel good about contributing 🙂

      Author's profile photo Jorge Sousa Villafaina
      Jorge Sousa Villafaina

      Very useful blog! Thanks!

      Author's profile photo Vinod Kannur
      Vinod Kannur

      Hi Edgar,

      Thanks for the blog, we have added the intent parameter in SCP portal. I need to pass this information as link from third party app along with intent parameters. Could you suggest how would URL need to be formed ?

      Thanks

      Author's profile photo akshaya parthasarathy
      akshaya parthasarathy

      How to pass dynamic parameters?