|
POST
|
Hi - I am familiar with using Power Automate to do various (simple) things with Survey123 & feature services, however I am using a new connector and am baffled by the error I am receiving. Goal: Send an email x days after the date stored in the "File_Complete_Date" attribute field of my data. I am testing with a 2 day delay, but if I can get this to work the delay would be 55 days. I want to use the Delay until action to accomplish this, however I receive this error when I test my Flow. Unable to process template language expressions in action 'Delay_until' inputs at line '0' and column '0': 'The template language expression 'addDays(triggerBody()?[outputs('Convert_File_Complete_Date')],2)' cannot be evaluated because property '{ "body": "6/16/2022 12:00 AM" }' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'. Here is what my Flow looks like, and below is the syntax I am using. Convert File Complete Date = addSeconds('1970-1-1', Div(triggerBody()?['feature']?['attributes']?['File_Complete_Date'], 1000), 'MM/dd/yyyy') Delay until = addDays(triggerBody()?[outputs('Convert_File_Complete_Date')],2) Any suggestions would be appreciated. Also, if this is not the best way to accomplish an email notification 55 days later, I would love suggestions on alternative options!
... View more
06-17-2022
06:54 AM
|
1
|
12
|
8352
|
|
POST
|
Hi - I am familiar with using Power Automate to do various (simple) things with Survey123 & feature services, however I am using a new connector and am baffled by the error I am receiving. Goal: Send an email x days after the date stored in the "File_Complete_Date" attribute field of my data. I am testing with a 2 day delay, but if I can get this to work the delay would be 55 days. I want to use the Delay until action to accomplish this, however I receive this error when I test my Flow. Unable to process template language expressions in action 'Delay_until' inputs at line '0' and column '0': 'The template language expression 'addDays(triggerBody()?[outputs('Convert_File_Complete_Date')],2)' cannot be evaluated because property '{ "body": "6/16/2022 12:00 AM" }' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'. Here is what my Flow looks like, and below is the syntax I am using. Convert File Complete Date = addSeconds('1970-1-1', Div(triggerBody()?['feature']?['attributes']?['File_Complete_Date'], 1000), 'MM/dd/yyyy') Delay until = addDays(triggerBody()?[outputs('Convert_File_Complete_Date')],2) Any suggestions would be appreciated. Also, if this is not the best way to accomplish an email notification 55 days later, I would love suggestions on alternative options!
... View more
06-17-2022
05:54 AM
|
0
|
0
|
1024
|
|
POST
|
Thank you for that help - I was not quite doing it this way. I was trying to set up one field for my link (which is type=text, but appearance=calculation and then a concat statement in the calculate column to generate the URL from a base URL and then 3 different fields in the form) and then a note which has the a href in the "label" column. Adding an intermediate calculate question for 'mylink' with your example above worked perfectly. My quotes were also a bit different from what you've shown, so seeing the second example was very helpful. I appreciate the help!
... View more
05-23-2022
11:51 AM
|
0
|
0
|
4182
|
|
POST
|
Hi, I was reading this blog post on the December 2021 update and was hoping for some clarification on this bug, which was marked as resolved in the post: BUG-000130873 The Survey123 web application does not honor HTML tag formatting set on surveys published from Survey123 Connect. I have a Survey123 form, which I am designing in the latest version of Connect. The URL I am creating works perfectly in Connect when I test, but as soon as the form is published the web form (which I have embedded in a Dashboard) does not work. Please see details below. I am having some issues with an a href statement working properly. It works perfectly in the field app and Connect (latest version downloaded today). Here is what I see in my form within a Dashboard; the blacked out portion is a read-only URL to SharePoint, while the hyperlink is in a 'note' and should say "View Project Files" and bring the user to the SharePoint location from above: The URL is completely different than what is specified; it goes here instead: https://survey123.arcgis.com/share/v3.14/ I have tried the a href statement with a : and = after 'target' and get the same result. Here is the XLSForm: Is this expected behavior? Any advice would be appreciated.
... View more
05-23-2022
07:05 AM
|
0
|
2
|
4243
|
|
POST
|
Hi Josh, Thank you! I guess that I thought the way I'd linked in the HTML would overcome the logic in my Iif & IsEmpty statements. Your solution works perfectly and is much appreciated (as always!).
... View more
05-20-2022
08:35 AM
|
2
|
0
|
3024
|
|
POST
|
Hi - I am customizing a list within my Dashboard and running into some odd behavior I am hoping for some help with. My feature layer has a field "Project_Folder_URL" which leads off to a SharePoint site. I want this URL to appear, for records which have it, in my customized list as a link that says "View Project Files". This is where I run into issues. I have this variable in my data expression for the list: var link = Iif(IsEmpty($datapoint["Project_Folder_URL"]), '', 'View Project Files');
return {
textColor: '',
backgroundColor: Iif($datapoint["Condition_ContMonitor"] =="Yes", '#3a0000', ''),
separatorColor:'#',
selectionColor: '#cccccc',
selectionTextColor: '',
attributes: {
cardHeight: 'auto', // Set consistent height or use 'auto'
cardBkgColor: '#ffff', // Choose a color such as rgba(150, 130, 110, 0.1),
radius: '5px',
value: $datapoint.DCR_File_Number,
valueSizePx: 18,
AppStatusIcon: AppStatusIcon,
AppStatusTxt: $datapoint.Application_Status,
title: Proper($datapoint.Lot_Address) + Proper($datapoint.ROW_Name) + ', ' + Proper($datapoint.Lot_Town) + Proper($datapoint.ROW_Town),
titleFontSize: '14px',
description: 'Request Type: ' + DomainName($datapoint,"Request_Type"),
maxDescriptionLines: 1, // ( <integer> | none )
project_url: link,
footerColor: '#EFECE2',
footerText: flexItems I return it in line 20. Within my HTML, you can see this expression called here: <div style="-webkit-box-orient:vertical; -webkit-line-clamp:{expression/maxDescriptionLines1}; display:-webkit-box; font-size:12px; font-weight:200; margin-bottom:0.3rem; opacity:0.6; overflow:hidden; padding:0.3rem 0; text-overflow:ellipsis"><a href="{expression/project_url}">{expression/project_url}</a></div> The list item looks great, however the URL being created in the list element is incorrect - it actually just changes the URL to that of the Dashboard for each item in the list. If I change my data expression (line 1 only - the return statement in line 20 remains the same) to the following, then the link is correct and works. var link = $datapoint["Project_Folder_URL"]; The issue here is that this is what my list element looks like: Help understanding why the Iif & IsEmpty statements return the Dashboard URL instead of my project URL would be appreciated. Thank you,
... View more
05-20-2022
07:49 AM
|
0
|
3
|
3079
|
|
BLOG
|
@IsmaelChivite - Should this bug be fixed in the web application if a Survey123 form is embedded in a Dashboard? BUG-000130873 The Survey123 web application does not honor HTML tag formatting set on surveys published from Survey123 Connect. I am having some issues with an a href statement working properly. It works perfectly in the field app and Connect (latest version downloaded today). Here is what I see in my form within a Dashboard: The URL is completely different than what is specified; it goes here instead: https://survey123.arcgis.com/share/v3.14/ I have tried the a href statement with a : and = after 'target' and get the same result. Here is the XLSForm: Is this expected behavior? Thank you,
... View more
05-18-2022
09:51 AM
|
0
|
0
|
1322
|
|
POST
|
Recovery is not the issue - I've recovered the data. The issue is more of why this happened. The error indicates that the survey should be in the Outbox (or Draft or Sent), but the Outbox is not there - its bizarre.
... View more
04-21-2022
05:59 AM
|
0
|
0
|
879
|
|
POST
|
Hi - Last night five users of the same survey experienced the same error using different iPads. The on-screen error, within the Inbox is: However, there is no Outbox or Draft folder (Sent is disabled): I checked the hosted feature layer and their partially completed surveys are there, however they can not recover the lost information, or access the Surveys in the Inbox. I am not having luck figuring out what is happening here. This has happened a few times before and it seems like if they go onto a different iPad, log in and refresh the Inbox, the survey appears (but is missing data). Any idea how to get Outbox/Drafts to show up or where I could recover the survey from? Should I be looking at the SQLite database? Thank you,
... View more
04-20-2022
05:05 AM
|
0
|
2
|
943
|
|
POST
|
Hi @JamesTedrick - I know this post is years old, but hoping you see this. I am having the exact date issue as @JamesKelly4 in my Survey123 form - a DOB pulled in from a CSV file is 1 day off (always the day before). I used your XLSForm above as an example but this did not work - the incorrect date is still being pulled in. Do you have any suggestions? I am really struggling with this one. After adding all of these new fields/calculations into my XLSForm, this is what happens when I test. The date should be November 10, 1960. Thank you,
... View more
04-12-2022
06:16 AM
|
0
|
2
|
4245
|
|
POST
|
I was able to get some help and figure out how to do this. I wanted to post the result here in case it is helpful to others. I am using a custom JavaScript function and a series of hidden and relevant questions in the XLSForm to accomplish my goal - prevent the submission of a new Survey123 form if the file number entered is a duplicate value. First, here is the JS function: /*
* JavaScript functions for Survey123
*/
function returnFeatures(DCR_File_Number, token, debugmode) {
// Output value. Initially set to an empty string (XLSForm null)
let outValue = "";
let layerURL = "https://URL GOES HERE/FeatureServer/0";
let response ="";
// Set up query parameters
let f = "f=json";
let where = `where=DCR_File_Number='${DCR_File_Number}'`;
let outFields = "outFields=*";
let returnGeometry = "returnGeometry=false";
let returnCount = "returnCount=1";
let parameters = [f,where,outFields,returnGeometry,returnCount].join("&");
let url = `${layerURL}/query?${parameters}`;
if (token){
url = url + "&token=" + token;
}
// Create the request object
let xhr = new XMLHttpRequest();
// Make the request. Note the 3rd parameter, which makes this a synchronous request
xhr.open("GET", url, false);
xhr.send();
// Process the result
if (xhr.readyState === xhr.DONE) {
if (xhr.status !== 200) {
// The http request did not succeed
return "bad request: " + url
} else {
// Parse the response into an object
response = JSON.parse(xhr.responseText);
if (response.error) {
return (debugmode? JSON.stringify(response.error):"");
} else {
if (response.features[0]) {
return "DCR File number is not unique"
//JSON.stringify(response.features[0]);
} else {
if (DCR_File_Number !== "") {
return "DCR File number is unique"}
//(debugmode? "No Features Found":"");
}
}
}
}
} Next, I configured the XLSForm - here is what all of the populated columns look like (I hid all of the empty/non-relevant columns to fit this into one image): When the user goes to enter a file number, if it is invalid (AKA a duplicate), they will see this message in the Survey123 form: Because of line 6 in the XLSForm, they are prevented from submitting their form until they correct the DCR File Number so that it is unique. When a unique DCR File Number is entered, this message appears and the user is able to submit: This seems to work very well for my use case. Since this is a web-only form (users only complete from a desktop PC) this works perfectly.
... View more
03-28-2022
05:38 AM
|
3
|
4
|
4112
|
|
POST
|
Hi @ZhifangWang - The workaround appears to work. Any ETA for a push to production?
... View more
03-23-2022
08:26 AM
|
0
|
0
|
3900
|
|
BLOG
|
This is great! This is the final result for now: Thank you! 🙂
... View more
03-16-2022
11:49 AM
|
0
|
0
|
864
|
|
BLOG
|
@jcarlson - thanks for the reply. I actually had not seen that app, however it does not do what I am looking for. Really, what I want is to be able to use Arcade to just pop out a number of null attribute fields which I could add into a custom list. Then, when staff are looking at the list, they could see records that require review. I suppose I could accomplish this directly in Survey123 by adding a read-only field with a calculation of some sort that would count completed questions, however it would be nice to accomplish this without changing the survey form. I just do not know if Arcade can even do something like this. Something kind of like this:
... View more
03-16-2022
08:36 AM
|
0
|
0
|
876
|
|
BLOG
|
Hi @jcarlson - this is great. One question I have for you...have you ever thought about ways to add in some sort of way for your users to tell how complete a features attributes are? This is something I am trying to figure out now and thought I'd see if you had any thoughts.
... View more
03-16-2022
08:15 AM
|
0
|
0
|
883
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-06-2022 09:14 AM | |
| 6 | 10-24-2024 12:04 PM | |
| 1 | 04-28-2021 09:14 AM | |
| 3 | 09-06-2022 11:53 AM | |
| 1 | 01-17-2024 05:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-14-2025
01:16 PM
|