How to pull email addresses from Sage50 - crm

Is there a way to pull all the email addresses ever entered from Sage50?
I have tried report designer and csv export, to no avail.
I can export a huge number of phone numbers, but would ideally like email addresses.

I don't know about "ever entered" unless you do some fiddling with the archive data.
If you want the current email data you can just do an obdc query.
SELECT ACCOUNT_REF, NAME, EMAIL, EMAIL_2, EMAIL_3, DIRECT_DEBITS_EMAIL FROM SALES_LEDGER;
https://docs.zynk.com/workflow/developers/sage-50-uk-schema/sage-50-uk-sales_ledger-columns.html

Related

Firebase Auth via company Employee number or secondary email in addition to primary email

it is possible to authenticate/login users on the app using their company employee number or through a secondary email ID.
Okay, let me try again,
I have managed to implement login via, email+password and phone number+OTP. The following data gets stored in the firestore database:
First Name
Last Name
Primary Email (this email is the charity domain email)
Secondary email (user’s personal email like google/outlook etc)
Phone No
Employee no (employee number given to each volunteers in our charity, normally a six digit number)
Now I want to implement options to login via stored secondary email or employee number.
I have come across linking accounts methods, but they mostly relate to social media/google accounts linking.
I want user to be able to login with secondary email or employee number + password they chose when registering the original account.
I hope it clarifies my question, and thanks in advance to anyone who could help me or point me in the right direction.

Use Model::create() to fill specific columns

I just found out that input data to db on laravel could use Model::create() but my question is what if i want to submit specific column? How do i do it? For example table user with name, email, address, and phone. Bug only input the name only without email, address, and phone.
You can simply do this
Model::create(['name' => $name]);
But make sure to make other columns email, address, and phone nullable or keep the default value for them, else it will throw any error.
Note:
If you are using MySQL database, then you have to set the default to nullable from MySQL database data structure.
But if you are using MongoDB with Laravel then you don't need to set other fields as nullable Because MongoDB is an unstructured (NoSql) database.

InfoPath - How can I read a people picker field and query AD to load additional fields related to the person in the field.

How can I read a people picker field and query AD to load additional fields related to the person in the field. Example: Employee Name; load information want to load email address, phone number. the InfoPath form is being used with Nintex Workflow and SharePoint 2010.
I have searched and have not been able to find answer.
Thanks
D
Unfortunately I don't have enough reputation points yet to leave a comment, but your question really doesn't provide enough detail. So any answer provided is going to be based on assumptions. You don't even clarify what version of InfoPath you're using.
That said, a good place to start is to create a data connection to receive data. You'll need to select the web service option and will then need to enter in the web server address. The address will probably be in the following format:
http://yourservernamehere/_vti_bin/userprofileservice.asmx?wsdl
Replace yourservernamehere with the address of your SharePoint server. Then, you'll need to select GetUserProfileByName as the operation you need. Just keep on clicking next and then finish to complete the connection.
You will then have to view the data source within InfoPath to see what fields are available and map the ones you want to the fields you want prepopulated on your form.
All this is based on my own assumptions, so I can't guarantee it will work in your scenario. Happy to assist if you still need help and are able to provide more details.
To autocomplete you can use your e-mail or phone number fields, with a new action rule. This is due to people picker fields not allowing any action rules applied to them.
The web service option mentioned in another answer unfortunately no longer works in SharePoint Online. Please use a data connection the hidden User Information List located on the stem of your SharePoint site instead.
Condition:
Use the condition DisplayName is not blank by using "Select a field or group..." in advanced view and selecting your people pickers DisplayName field
Actions:
Set a field's value
Field: User Information List data connection queryFields DisplayName of people picker
Value: your forms DisplayName of people picker
Query using a data connection: User Information List data connection
Set a field's value
Field: your forms email or phone number field
Value: data fields > Work_email / Work_phone of your data connection

MS infopath 2007

I have a form I have reated that I now need to have sent to multiple recipients through MS outlook. I have no problem creating a hard coded email address and submitting the information to my database through the Submit button, however I need to be able to adjust the email addresses on the fly or give the users the option to add email recipients. I have researched online and found that there is a built in function for this that links to the address book in outlook, however my systems admin has deactivated this feature. So any assistance on how to perform this type of function would be greatly appreciated.
I ended up going aroung the built in feature that was disabled by systems. In the email rules I selected my database table that housed both the office name and email address in the To: & Cc: fields through the function button. While in the function I selected my field named distro list and selected filter. There I built a logic that states
#Distro[#Office = #Office]
Where the first # Office is a reference to the field in the Disro List table, and the second # Office is from the main data connection. This filter is basically saying return the distro list that is present in the table when the displayed main connection Office field is equal to the Distro List Office field. Works like a champ.

send a mail to a user with a link

In my project i am sending a mail to the user to create a user account. I want to enable that link for the first time he/she clicks the link. if he clicks the link for more than 2 times,then it should go to custom error page.how to do this?
This depends on how the link is generated.
For example: If your link contains a username as GET-parameter, then you could simply query your database if the username is already in use. I would advise against that, because the user can easily change that GET-Parameter
I would recommend this: Your link should contain a unique identifier, most likly a hash. This hash is stored somewhere, to garantee it's uniqueness, like in the usertable of your database (a column for the hash of the registration link). That might also come handy, because you could create new user rows and already prefill them with necessary information. You could use these information upon rendering to insert text into the textboxes

Resources