|
POST
|
Edward, I added more than one URL and made some changes. It was sucess but not expected. Is it possible to communicate thru message or email? Please let me know. Thank you for assistance.
... View more
05-16-2019
01:34 PM
|
0
|
2
|
2623
|
|
POST
|
Hello Edward, Is it possible to add more than one URL feature server in one email? Please advise. Thank you for your assistance.
... View more
05-10-2019
11:26 AM
|
0
|
4
|
2623
|
|
POST
|
You are correct. I revised it and it finally came thru to email. Thank you for your time and assistance on this matter.
... View more
04-10-2019
01:40 PM
|
0
|
6
|
1890
|
|
POST
|
Please see screenshot with pyscripter. The line where the subject is # 64. I am looking up on smtp doc.
... View more
04-10-2019
12:45 PM
|
0
|
8
|
1890
|
|
POST
|
Thank you for your assistance. I revised and input email server/credentials. I tried to run it. Please see screenshot. I am using 2.7.13 python.. Am I doing anything incorrect?
... View more
04-10-2019
12:27 PM
|
0
|
10
|
1890
|
|
BLOG
|
This is a testing purpose. It is secured service to store credential.
... View more
04-10-2019
11:37 AM
|
0
|
0
|
12674
|
|
POST
|
I tried to run it but still having an issue with oidlist and subject error. Please advise. Thank you, Alex
... View more
04-10-2019
11:35 AM
|
0
|
12
|
1890
|
|
POST
|
Ok. I recent revised it what you mentioned above. It is enabled on to public and it is secured feature server URL. I also created a new feature point today.
... View more
04-08-2019
07:32 AM
|
0
|
0
|
1890
|
|
POST
|
I understand. Please see zip file attached. Thank you for your time and assistance.
... View more
04-05-2019
03:11 PM
|
0
|
15
|
1890
|
|
POST
|
Thank you for the file. I revised it and tried to run it but I got invalid syntax. Screenshot below.
... View more
04-05-2019
02:44 PM
|
0
|
17
|
2116
|
|
POST
|
I am not sure that I am following. That would be great if you can share it to me. Much appericated.
... View more
04-05-2019
01:47 PM
|
0
|
19
|
2116
|
|
POST
|
import urllib2, json, urllib, datetime, time, smtplib
from datetime import timedelta
oidList = []
URL = 'https://utility.arcgis.com/usrsvcs/servers/xxxxxxxxx/rest/services/xxxxx/FeatureServer/0/query'
params = {'f': 'pjson', 'where': "1=1", 'outfields' : 'OBJECTID, created_date', 'returnGeometry' : 'false'}
req = urllib2.Request(URL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
for feat in data['features']:
createDate = feat['attributes']['created_date']
createDate = int(str(createDate)[0:-3])
t = datetime.datetime.now() - timedelta(hours=24)
t = time.mktime(t.timetuple())
if createDate > t:
oidList.append(feat['attributes']['OBJECTID'])
FROM = 'xxxxxxxx'
TO = ['xxxxxxxxxxxx']
SUBJECT = 'New Feature Added'
TEXT = "Features with OBJECTIDs " + str(oidList) + " were added."
message = """\
From: %s
To: %s
Subject: %s
%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
smtpObj = smtplib.SMTP(host='xxxxxxxx', port=xxx)
smtpObj.sendmail(FROM, TO, message)
print "Successfully sent email"
smtpObj.quit()
It has been run successful but the email I have recieved is blank.
... View more
04-05-2019
01:08 PM
|
0
|
21
|
2116
|
|
POST
|
Hello Edward. Thank you for your response. Please clarify. What are features and attributes? Ex. Attributes = STATUS field? and features = ??? Do I need to replace LastDate = int(str(createDate)[0:-3]) ? I am not sure what this is.. If the status field is completed or closed, would it stop run 24 hours? Thank you for your assistance!
... View more
04-04-2019
01:15 PM
|
0
|
23
|
2116
|
|
POST
|
Edward, Thank you for your quickly response. Your statement "Are you asking for a return of all records where the last edit date field or the status field has not changed in 24-48 hours? If so the date field would be easy to do it on" is what I am asking. How can I do it? Is there a script or other? Please advise.
... View more
03-20-2019
01:26 PM
|
0
|
25
|
2116
|
|
POST
|
Hello Jake, I have a question. Do you or anyone know what is the script for 'Last edited date' field or 'Status' field that hasn't touch or change for last 24 and 48 hours triggers to email notification? It is about service request for internal on their end. Please advise. I can't find it anywhere. Thank you.
... View more
03-20-2019
12:46 PM
|
0
|
27
|
2784
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-30-2021 01:32 PM | |
| 1 | 04-01-2025 12:12 PM | |
| 1 | 05-12-2021 10:12 AM | |
| 1 | 07-25-2018 12:53 PM | |
| 1 | 08-06-2018 12:27 PM |