ContributionsMost RecentMost LikesSolutionsRe: Payments / PipelinesThis is an old thread, and you all may have already found a solution since then, but I had the same issue and ran into some issues using Zapier and recently discovered that the "Invoice Updated" trigger works when a payment is received/applied to an invoice. Depending on what you were looking for the received payment trigger to do/carry forward to future steps, I thought this might be helpful info. For our use case, I mainly wanted some quickbase records updated as paid when an invoice balance was 0, so adding that filter to the "Invoice Updated" trigger to only run if the invoice balance was 0 did the trick. I tried adding a filter to only run if {{a.balance}} <> {{a.$prev.balance}}, so it would only run specifically when the balance changed to 0, but that logic doesn't seem to be working at this point and it still triggers even when there's a non-numerical update to the invoice and the balance is 0. Thankfully we are a really small company and don't update invoices after they're paid very frequently, so it shouldn't be too much of a step run suck to not have the extra logic barrier. ------------------------------ Stacy ------------------------------ Using the RunSaveRefresh Code Page Exampls from "Add Record" (Record doesn't exist yet)I have successfully integrated buttons using the new Code Pages Sample App and it works great IF the record already exists - Thank you to anyone who worked to create it! What I am running into is that when I click the button from the "Add Record" view (ie. the record doesn't exist yet) I always get redirected back to a blank "Add Record" view again instead of the newly created record I clicked the button from. Here's an example of the code: var text Token ="TOKEN"; var bool NewValue = not [VALUE]; var text URL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken="& $Token &"&rid="& [Record ID#] & "&_fid_113=" & URLEncode($NewValue) &"&rdr="&URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid="&[Record ID#]&"&z=" & Rurl()); URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=16" // Open code page 16 (15 seconds) & "&url=" & URLEncode($URL) // Pass in the URL to execute I've tried a variety of combos of the ending of the url, included the new doredirect from this blog post to try to get it back to the original (newly created) record, but I also noticed that the fid_113 is also not changing when this button is clicked which makes me wonder if I should be using a different API call since the record doesn't exist yet? I basically am looking for the functionality of the former super simple "Save & Keep Working" javascript button that worked by saving the existing record (whether already it already exists or not), pausing, and then refreshing/returning to the newly created record (doesn't really even need to edit any field as I have a pipeline that will run when the record is added OR a field changes). I just want to make sure that a pipeline has a chance to run before the user continues filling out the remainder of the form. Does anyone have any advice or examples of how to run the RunPauseRedirect code page and then return to the newly created record without using javascript outside of a code page? Thank you! ------------------------------ Stacy ------------------------------ Re: Single Button to Save & Keep Working Before Editing a Record (ex. change a checkbox)?Thank you, Nathan!! Your solution did the trick! The only slightly hacky part of the solution was creating two formula rich text fields that a form rule is set up to show/not show depending on if the trigger checkbox is/isn't selected (so clicking the button will either change the checkbox to true or false, as needed). I appreciate your help - I started down the rabbit trail of custom code/script pages and was quickly getting lost. Creating two "button" fields for each trigger field is well worth holding off on entering the world of code pages. ------------------------------ Stacy ------------------------------ Single Button to Save & Keep Working Before Editing a Record (ex. change a checkbox)?I am looking to combine two buttons I've found solutions to via this community (thank you!!), but I am unsure how/if it's possible. Button 1: "Save & Keep Working" Rich Text Field "<div class='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Generate Document</div>" Button 2: "Change a checkbox" URL Formula Field var text Token ="TOKEN"; var bool NewValue = not [checkboxfield]; var text URL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken="& $Token &"&rid="& [Record ID# #] & "&_fid_checkboxfield=" & URLEncode($NewValue) & "&disprec=1"; "javascript:" & "$.get('" & $URL & "',function(){" & "location.reload(true);" & "});" & "void(0);" Objective: Clicking a single button that saves any changes to a record first, then changes a checkbox on the same record that triggers a pipeline, automation and/or webhook to run. So from a flow standpoint, I want a user to be able to click a button to manually trigger an action, as sometimes the automation/pipeline is not necessary every time certain fields change (ie changing a date does not mean that the document needs to be created right then), but it is necessary that any changes to the record are saved before triggering that action (ie. changing the textbox)... Thank you so much for any help! ------------------------------ Stacy Seapy ------------------------------