cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Re: Populate DataCard with Date (point in time) based on another DataCard selection

@v-xida-msft  Okay so a quick update!

 

The logic is working I just discovered:

If(
    AssetEditForm.Mode = FormMode.Edit && DataCardValue35.Selected.Value = "Terminated",
    Patch(
        rdAssets,
        LookUp(rdAssets, Name = DataCardValue53.Text),
        {
           Termination_Date: Text( Now(), "[$-en-US]mm/dd/yyyy" )
        }, {Portfolio_x0020_Status:  {ID:5,Value: "Terminated"}}
    )	
);

 

The problem is, when the Patch function runs, a new record appears in the form.  My thoughts are since I have a Submit function as well, its conflicting with that?

 

How do I run the Path function but then stay on the same record? As when I update to "Terminated" there are other required fields to fill out...

 

Thanks!

 

 

Highlighted
Post Prodigy
Post Prodigy

Re: Populate DataCard with Date (point in time) based on another DataCard selection

My OnSuccess property is this:

 

 

If(
	Not(IsBlank(PTPID)) && IsBlank(PTPID_OC),
		Patch(
			RD_Partnership_List,
			LookUp(RD_Partnership_List,Portfolio_ID=DataCardValue53.Text),
			{Portfolio_ID:Blank(),
			Portfolio_Alias:Blank()}
		)
);
Concurrent(UpdateContext({vTitle: ""}),
Navigate(SuccessMessage,ScreenTransition.None),
ResetForm(AssetEditForm),
Refresh(rdAssets),
Refresh(RD_Partnership_List))

 

Can I avoid running these when the patch within the Status field is executed? is that possible?

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,716)