• Paul Karaffa 11
• NEWBIE
• 35 Points
• Member since 2019

• Chatter
Feed
• 1
• 0
• 0
Likes Given
• 0
Questions
• 2
Replies
Stuch on how to code this:

Starting with this…
string created = opportunityList.Quarter_Created_op__c;
decimal year = opportunityList.Start_Year__c;
decimal quarter = opportunityList.Start_Quarter__c;
decimal span = opportunityList.Quarters_Spanned_op__c;

decimal counter1 = 0;
while (counter1 < span )
{

......................................................................

How do I code this?

If quarter is =< 4
Output = year + quarter (for use in next step) should look something  like this (2019-Q1 or 2019-Q2 or 2019-Q3 or 2019-Q4)

If quarter is >4 reset quarter to 1
Increment year +1
Output = year + quarter (for use in next step) should look something  like this (2020-Q1)

Each time this completes, increment quarter++ until (counter > span)

I will use the output from the above loop in creating a new record.

Any help out there for a newbiw coder?

Thanks much,
Sc
Stuch on how to code this:

Starting with this…
string created = opportunityList.Quarter_Created_op__c;
decimal year = opportunityList.Start_Year__c;
decimal quarter = opportunityList.Start_Quarter__c;
decimal span = opportunityList.Quarters_Spanned_op__c;

decimal counter1 = 0;
while (counter1 < span )
{

......................................................................

How do I code this?

If quarter is =< 4
Output = year + quarter (for use in next step) should look something  like this (2019-Q1 or 2019-Q2 or 2019-Q3 or 2019-Q4)

If quarter is >4 reset quarter to 1
Increment year +1
Output = year + quarter (for use in next step) should look something  like this (2020-Q1)

Each time this completes, increment quarter++ until (counter > span)

I will use the output from the above loop in creating a new record.

Any help out there for a newbiw coder?

Thanks much,
Sc
On my community I have a page with a flow component that shows a screen flow with form fields.

For one of the fields need to be prefilled with a string via the URL. This field is populated via a variable in the flow called ReferralCode.

Passing a value in the variable via the internal url works fine. When I try to do the same for the community URL it does not pass the value of the url.

I tried the following url:
https://test-shbl.cs101.force.com/shbl/s/registration?ReferralCode=XYZ1

Is this even possible and if yes how can I achieve this?