function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
studzeystudzey 

Flow Functionality Questions -- Assistance would be fully appreciated

Hi everyone, 

 

I have the following scenario:

 

I created a flow that i placed on a public SF site. Basically, It allows for people to select an event and then register for it. "Event" being a custom object. They can register as Exhibitors, 3 Day Attendants and / or Full Weekly attendants, and each time a registration is made, an "event registration order" (custom object) is created, which will link up the type of attendants they are registering as with the event they are registering for. Basically my Salesforce relationship modeling is working solidly .  

 

The next step is the following:

 

I have to, once the registration (and order has been made. send them to a payment portal that we built in-house. The problem that I have, is that I want to direct them to our portal, but also send information regarding that order (cost, reference etc) to that site as well, so that the person that built the portal can do the processing. 

 

Once the customer has paid successfully (at our payment portal) , I want to re-direct them to the second flow that I created, which will check the incoming variable references, and change the order  status to "Paid". 

 

Question:

 

Firstly, I know about the "Finishing" flow function, that will redirect the flow to a url, but how can I make that dynamic so that it will for each flow add variable data to an url? I.e. it must build a url dynamically and then redirect it to that url? The payment portal must be able to receive values so that it can send a response to another flow once the payment is successfull. 

 

Secondly, i know that you can, within salesforce, do calls to flow and put incoming variables in the call (for example) /flow/flowname/?variable1="value"?variable2name="value"

 

BUT how do you do the call when the (called) flow is now placed in a VF page, on a site? For example,   www.url.com/registration is the url, do i now do it like previously and just go www.url.com/registration?variable1="value:" - will that work?

 

Really would appreciate the help

 

Regards,

 

Stadler van Zyl (new to SF)

Best Answer chosen by Admin (Salesforce Developers) 
LoïkLoïk

Hi Studzey,

 

Firstly, sorry for my english. He is so poor ...

 

Secondly, about the "Finishing" Flow function, you must read Salesforce Pages Developers Guide, "Chapter 16" :

http://www.salesforce.com/us/developer/docs/pages/salesforce_pages_developers_guide.pdf. And about call, you can use this example : /flow/SAGEDEV4?ContactId={!Contact.Id}&ContactLastName={!Contact.LastName}&ContactFirstName={!Contact.FirstName}&AccountId={!Account.Id}&UserId={!$User.Id}&UserLastName={!$User.LastName}&UserFirstName={!$User.FirstName}&CampaignMemberId={!Contact.CISCOIdCampaignMember__c}

 

SAGEDEV4 is the name of the flow.

This is a custom buttons on contact. The script is called from a contact page.

 

Since this can help you.

Sincerly,

Loïk.

 

All Answers

LoïkLoïk

Hi Studzey,

 

Firstly, sorry for my english. He is so poor ...

 

Secondly, about the "Finishing" Flow function, you must read Salesforce Pages Developers Guide, "Chapter 16" :

http://www.salesforce.com/us/developer/docs/pages/salesforce_pages_developers_guide.pdf. And about call, you can use this example : /flow/SAGEDEV4?ContactId={!Contact.Id}&ContactLastName={!Contact.LastName}&ContactFirstName={!Contact.FirstName}&AccountId={!Account.Id}&UserId={!$User.Id}&UserLastName={!$User.LastName}&UserFirstName={!$User.FirstName}&CampaignMemberId={!Contact.CISCOIdCampaignMember__c}

 

SAGEDEV4 is the name of the flow.

This is a custom buttons on contact. The script is called from a contact page.

 

Since this can help you.

Sincerly,

Loïk.

 

This was selected as the best answer
studzeystudzey

Thanks Loik.

 

 

studzeystudzey

Hi Loik, 

 

I was wondering....doyou know of a way where I can change the page layout of flow? I have pretty much completed how the flow should work ...but, I need to improve what it looks like.

 

The main complaints are the following: 

 

1. Fields must be closer together and text must be a bit smaller

2. Background must be completely white everywhere. 

3. Change some of the buttons names / remove some unnecessary buttons ( the second next shouldnt be there)

 

Is it possible to make the abovementioned changes? 

 

Thanks

 

Stadler