I would like to be able to automatically update gcal from a form as follows:
A. On my form I enter the name and phone number of a person I want to stay in touch with over the course of the year (jon smith 555.555.1212). I want the posting to take the name and phone number, and insert them into a MySQL table. There, they are merged with the data from another table, which consists of 3 unique sequential follow-up events that are each 28 days apart based on the form submitted date:
jon smith 555.555.1212 + call for lunch meeting (28 days from initial post date)
jon smith 555.555.1212 + email info on topic of interest (56 days from initial post date)
jon smith 555.555.1212 + call for office visit (84 days from initial post date)
This should repeat:
jon smith 555.555.1212 + call for lunch meeting (112 days from initial post date)
jon smith 555.555.1212 + email info on topic of interest (140 days from initial post date)
jon smith 555.555.1212 + call for office visit (168 days from initial post date)
B. after the data are merged into the MySQL table, I would like take the info created on the table to automatically be exported to Google calendar with reminder dates and times.
Any idea how to do this? I know how to import a CSV file to gcal manually; is it possible to do it via a PHP page with form to MySQL to gcal, or is there a more efficient way?
If it matters, I am using Godaddy as host (linux)
Did you know that there is an API?
https://developers.google.com/google-apps/calendar/
Using php you should have no problems to realise what you wish.
If you have a more specific question concerning PHP, don't hesitate to ask!
EDIT:
The Zend Framework has Google Data API support
You can even load the standalone files for the gdata API ("Other Downloads")
A Tutorial
Googles Samples page
Google-Calendar-API-PHP-Class by Montaia
Related
Currently working in Pega8.6.1, we want to put in an email(correspondence rule)/document a date field that shows a date plus 10 business days. The date should be 10 business days from the creation date of the email.
Have tried <%= pega_rules_datetime.pyCurrentDate.addDays("", 10, true, "") %> but am afraid I'm putting it wrong into the correspondence rule. In the generated email this formula is just shown as is.
Am fairly new with Pega so bear with me. Working now for about 2 months with Pega and afraid trying to reinvent the wheel.
Is what we are trying to establish even possible in Pega?
Thanks,
John
You can store the +10 days value in a separate property on Primary page of the email.
For example if pyWorkPage is your Primary page then you can have a separate property for example EmailPlusTen on pyWorkPage.
Then you can write something like below in a Data Transform or in an Activity rule before calling you email logic.
.EmailPlusTen = #(Pega-RULES:BusinessCalendar).addDays(#DateTime.CurrentDate("yyyyMMdd",""),10,true,"")
Then you can directly include property EmailPlusTen in your Correspondence rule by using this tag <<.EmailPlusTen>>
If you are using an activity to send the email then you can create a Parameter value and set it in the Activity before email logic.
for e.g.
Param.EmailPlusTen = #(Pega-RULES:BusinessCalendar).addDays(#DateTime.CurrentDate("yyyyMMdd",""),10,true,"")
And then include it in Email Correspondence <<Param.EmailPlusTen>>
I have a source table, which receives all the fields as a space-separated string. So I am using the update policy to parse it first, do some manipulation and ingest it to the target table. But however, I am getting this error and don't know why. I have been stuck for hours, any help would really be appreciated.
.create function
UpdateFunction()
{
TempTable
| parse Record with Timestamp:datetime' 'HouseNo:string' 'Age:int' "'Adress:string'" "'Name:string'" 'Gender:string' 'CountryCode:string
| extend FullName = split(Path,"?")
| join kind=leftouter countryTable on $left.CountryCode==$right.CountryCode
| project "Admitted", Timestamp,House,Age,Adress,Country,tostring(FullName[0]),tostring(FullName[1])
}
a sample record will look like this-
20-12-2021 20B 7 "XYZ House, New York" "Anna Thomas" Female US
and my target table data should be like this
Admitted,20-12-2021,20B,21, XYZ House New York, United States, Anna, Thomas
countryTable has the country mapping to the corresponding country codes.
For next time, please include a request ID in your message. You can copy it from the web explorer using this button:
Assuming I was able to locate your requests correctly, I believe you had an extra open quotes at the end of the parse operator line, with no corresponding closing quote. I see some successful requests after that. Please reply back with a request ID if you are still experiencing the same issues.
I just started working at a new company and I thought that I'd make a spreadsheet for my personal use. My boss came across me working on that spreadsheet and loved it so far. They've been manually entering values into their own spreadsheets since they've started and I thought it was super tedious, so I've been working on my own for the last week trying to improve efficiency on my end. Now my bosses want me to do this for the other branches... so the pressure is real for me. I've completed every other feature they've requested, but I'm struggling with this last one so I'm here now requesting help.
I have two sheets. One called "Inspection Results" and "Still Hasn't Passed Inspection."
"Inspection Results" looks something like this:
Timestamp
Date
Name
MS Number
Address
Jurisdiction
Inspection Result
4/21/2021
4/21/2021
John Smith
MS12345
123 Test St
Orange
Passed
4/20/2021
4/20/2021
John Smith
MS12345
123 Test St
Orange
Failed
4/21/2021
4/21/2021
Rick Grimes
MS12356
123 Meme St
Riverside
Passed
4/19/2021
4/19/2021
Michelle Obama
MS54321
123 Demo St
Long Beach
Failed
4/18/2021
4/18/2021
Michelle Obama
MS54321
123 Demo St
Long Beach
Failed
4/18/2021
4/18/2021
Courage Dog
MS98765
123 Coward St
Orange
Cancelled
"Still Hasn't Passed Inspection" currently looks like this:
Name
MS Number
I want to search every row in "Inspection Results" and find the Names(Column C) of the people that do not have a inspection result(Column G) of "Passed" and write a new row in "Still Hasn't Passed Inspection" with the Name(Column C) and MS Number(Column D) of those people that could not be found with a "Passed" inspection result.
I want the table in "Still Hasn't Passed Inspection" to have unique rows. For example, there are some rows in "Inspection Results" that I have the same Name and Inspection Result. In the table that I posted, Michelle Obama failed inspection. I only want Michelle Obama to appear one time in the "Still Hasn't Passed Inspection" sheet. John Smith failed inspection one day, but passed on the following day so he wouldn't be included in the table.
Basically, based on the example table I posted above, I want "Still Hasn't Passed Inspection" to look like this:
Name
MS Number
Michelle Obama
MS54321
Courage Dog
MS98765
I'm trying to automate this process so I, or whoever, doesn't have to keep manually entering and deleting rows every time someone finally passes inspection. If someone submits a "Passed" entry into "Inspection Results" for someone that previously "Failed" or "Cancelled", I want "Still Hasn't Passed Inspection" to be updated.
Is there a way I can accomplish this with certain formulas or am I going to have to create a script on this and, if so, does anyone have a reference they can point me towards? I'm not an experienced coder. I'm not familiar with Javascript and its syntax, but I do know how variables, if statements, and for loops work. I'm not asking anyone to write me a bunch of code on this. This isn't your responsibility. If you want to, of course, it would always be appreciated. Any hints or reference towards resolving this would be amazing.
Thank you.
I am a big fan of the query (QUERY(data, query, [headers])) function. Using it, you could do something like this on "Still Hasn't Passed Inspection"
=query(Inspection Results!A2:G, "Select C, D where G = 'Failed' OR G = 'Cancelled'")
This is saying to look at the data in the Inspection Results sheet, column A2 through G (specifying no row number will go to the end of the sheet).
It is then grabbing the contents of column C and column D in Inspection Results and pulling those into the sheet with the query function, in separate columns, a row for each result. It will only pull in the results where column G (Inspection Results in your example) is the string "Failed".
You would then need a query to get the ones that have passed, and filter the resultset based on that, such as:
=filter(query(A2:G, "Select C, D where G = 'Failed' OR G = 'Cancelled'"), arrayformula(not(countif(query(A2:G, "Select D where G = 'Passed'"), query(A2:G, "Select D where G = 'Failed' OR G = 'Cancelled'")))))
This is essentially saying, "Filter my query of not-passed inspections by looking at passed inspections, and not including any with the same MS Number"
We can download a CSV or XLS of PayPal Completed Payments by manually going to https://business.paypal.com/merchantdata/reportHome and doing "Activity download":
But how to get this CSV report, automatically (via email or with an API), each week or each month, without having to manually log in on the website?
Note:
I've already looked at PayFlow reports and download-reports but it seems quite complex, and there is no full example (only XML samples but it's unclear how to use them)
I don't want to use IPN for this (I do use it for another task, but it's not perfectly reliable for other reasons, etc.)
Example of desired output:
"Date","Time","TimeZone","Name","Type","Status","Currency","Gross","Fee","Net","From Email Address","To Email Address","Transaction ID","Shipping Address","Address Status","Item Title","Item ID","Shipping and Handling Amount","Insurance Amount","Sales Tax","Option 1 Name","Option 1 Value","Option 2 Name","Option 2 Value","Reference Txn ID","Invoice Number","Custom Number","Quantity","Receipt ID","Balance","Address Line 1","Address Line 2/District/Neighborhood","Town/City","State/Province/Region/County/Territory/Prefecture/Republic","Zip/Postal Code","Country","Contact Phone Number","Subject","Note","Country Code","Balance Impact"
"3/1/2018","04:52:07","CET","John Doe","Website Payment","Completed","EUR","100.00","0","100","johndoe#gmail.com","contact#example.com",...
"3/1/2018","16:29:30","CET","Mike Abcd","Website Payment","Completed","EUR","100.00","0","100","mikeabc#example.com","contact#example.com",...
You will have to do it through the XML api. Basically, you make a post request with the example XML in the link you gave but with your data. The response will be in XML and you take the returned reportId and then call the get report api and it will return in xml the report data.
Basically I'm new to using Yahoo finance Api. I've tried YQL Console but I can seem to find what I needed. I have to get like 3 months worth of stock quoute data. I found this http://chartapi.finance.yahoo.com/instrument/1.0/GOOG/chartdata;type=quote;range=30d/json
This is exactly the sets of data that I needed but it only gives me a whole month of data. No matter how I change the range=30d to say range=90d it gives me the same result.
Sorry cant comment due to my low reputation.
what you need to do exactly is use the following arguments in the url
30days: 30d
90days/ 3months: 3m
180days/ 6 months: 6m
365days/1 year: 1y
so the link for 3 months will be
http://chartapi.finance.yahoo.com/instrument/1.0/GOOG/chartdata;type=quote;range=3m/json
Hope it helps. :)