Need help with user.register.post.post_process script
Great!!Now you can pass parameters through the rest call.Like this: platform.api.post('email', { "username": "The name", "city":"Df Island", "information":"more information", "template": "My Template...
View ArticleNeed help with user.register.post.post_process script
How do I reference the information of the record that currently registered. Like name and email?
View ArticleNeed help with user.register.post.post_process script
You could get the user data: user = event.request.body.record; (this is the body of the initial request, you have access to it) var user_data =...
View ArticleIssue with custom email template
The template name should be the same, did you change the "Custom User Registration" template to be like you want? *The last param "name" it's not needed.
View ArticleIssue with custom email template
I created a new template "Custom User Registration". Right now I'm trying to pass the subject and body_html. It works like this but I'm hoping I don't have to build the whole message like this.
View ArticleIssue with custom email template
In template you have to set all the things you need. "Sender email" and "Sender name" is what you need to change, above the Body input.
View ArticleNeed help with user.register.post.post_process script
I tried this. user = event.request.body.record; var payload = { "to": [ { "name": "Allen Sandiego", "email": "email@domain.com" } ], "subject": "Welcome", "body_html":...
View ArticleNeed help with user.register.post.post_process script
Sorry, in DF 2 you should use: event.request.payload.resource instead of event.request.body.record
View ArticleRemove JSON trace information
Hello, I did some testing, and arrived at a possible solution. In .env file (located in htdocs) there are two settings in the beginning of the file: \ ---------------------------------------\...
View ArticleError when using API
I'm also having this issue working against an MS SQL Server backend. Although I do not know if it is related to the data having quotes or not, since I haven't been able to see any data. My setup was a...
View ArticleNeed help with user.register.post.post_process script
Hi, I've modified my script. var user = event.request.payload.resource; var payload = { "to": [ { "name": "Allen Sandiego", "email": "email@domain.com" } ], "subject": "Welcome", "body_html":...
View ArticleNeed help with user.register.post.post_process script
allensandiego: var user = event.request.payload.resource;..."from_email": "email@domain.com","name": user.email Hello @allensandiego, in this case the user is an array.probably if you make...
View ArticleHow to read records from couchdb view
Hello, @Kfir_Peled I could not make my couchdb work with api NoSQL. My solution was to set up the CouchDB in a webservice. Thus, the available resource are precisely what CouchDB offers natively via...
View ArticleNeed help with user.register.post.post_process script
Hi, This is what I had originally. During POST in "/user/registration" in Chrome Rest Client, the response returns: {"success":true} However, I receive no email. I also tried getting the first item in...
View ArticleNeed help with user.register.post.post_process script
juniorconte: // system.user.post.post_process // This script runs AFTER create users. // records are in array event.request.payload.resource. var lodash = require("lodash.min.js"); if...
View ArticleNeed help with user.register.post.post_process script
Hi, I tried as you suggested. Copied the script as is. I created the user through the DF Admin -> Create page. No email received. I used Chromes Rest Client and did a POST to /user/registration. No...
View ArticleNeed help with user.register.post.post_process script
Hi, please copy paste here the body requisition you're using in Chrome Rest Client and the log file about requisition it self.
View ArticleNeed help with user.register.post.post_process script
Here's my payload { "email": "someemail@somedomain.com", "first_name": "Allen", "last_name": "Sandiego", "new_password": "password" } Replacing someemail@somedomain.com with a valid email address.
View ArticleSetting up Permanent Session Token in DF 2.0
Hi, I would also like to implement this. Where can I find the .env file? I am using Dreamfactory 2.0 through Bitnami in AWS. Thanks,Allen
View ArticleNeed help with user.register.post.post_process script
Hello @allensandiego . I just realized that you are using user.register.post.post_process and not system.user.post.post_process, I'm sorry for the confusion. In this case, you must follow the...
View Article