@KristalWalsh
Here you go. This will create a link in a pop-up to open the survey record from the inbox in edit mode.
var urlsource = 'arcgis-survey123://?';
//Custom URL Schema
var item_id = <Survey's ItemID fround on Survey123 website>;
//form item ID, found by going to survey123.arcgis.com and copying from the survey link under collaborate
var guid_field = <guid field name>;
// GUID field in related table, foreign key points back to feature layer
var globalid = $feature.GlobalID;
//pull individual feature's globalid value
var q_exp = guid_field + "='" + globalid +"'";
//query expression to search survey table for guid that matches feature global id, must be passed in UrlEncode()
var linktext = <Put link display text here>;
var params = {
//parameters for UrlEncode()
action: 'edit',
//sets survey123 to edit existing record
folder: 'inbox',
//searches the survey123 inbox
itemID: item_id,
//use form item id here to target specified survey
update: 'true',
"q:where": q_exp
//for query parameters to work in URL encode must be "q:where": to pass the query into the link as q%3Awhere=
//if the '=' after the where is encoded as html the query fails because it doesn't know how to recognize the html encode
//the field name has to be specifically typed here, if it is assigned as a variable elsewhere in the expression and the
//variable is called here it includes the variable name along with the variable and causes the expression to fail.
};
var fullURL = Concatenate([urlsource,UrlEncode(params)]);
//creates the full dynamic url
return {
type: 'text',
text: `<p> <a href="${fullURL}" target="_blank">${linktext}</a></p>`,
//this property supports html tags
};