Questions?
They are answered by the XTRF community and our experts
Provider document organization and efficiency
Hello,
My question is: how do others most efficiently get providers/translators to sign documents such as tems & conditions, work agreements, NDA's and also how to make sure that on onboarding they provide you with all of their necassery documentation such as CV, tax documents, educational documents etc. Is there a specific programm people use or some specific method simply to increase efficiency and organiztion?
XTRF Groovy Macro - How to compare numerical values with non-numeric value 'Hyphens'
How to check in XTRF Macros when value is a whole number or with decimal places and/or non-numeric values exists such as hyphens.
Example 1: Quote Value can be 0
Example 2: Quote Value can be 0.00
Example 3: Quote Value can be -
A question for some group-think... Has anyone effectively used XTRF to track referrals?
We're trying to think about how to track referrals better and would love to use XTRF if that's possible. Has anyone done this effectively who is willing to share what they've done?
Thanks!
when i try to connect to a database using macro I get invalid address error
I try to connect to a database using xtrf macros and I get this error
invalid database address: jdbc:mysql://"HostIp:PortNumber"/"db name"
this is the code I am trying to connect to db with
try {
String url = "jdbc:mysql://host:port/"
String db = "database name"
String userName = "username"
String password = "password"
Connection conn = DriverManager.getConnection(url + db,userName,password)}
catch(Exception e){
return e.getMessage()
}
however the same code works fine on my machine when I try it on Intellij, is there something missing in my code ?
How to send emails to users using the logged in admin email with macro
I want to create a macro that sends emails to users, the sender is the already logged in admin email and the recipients are the selected users i want. what class should I be using in order to achieve that ?
I have a macro that checks a condition and I want it to mail the output to a static mail
My macro works just fine but I don't know how to make it send an email if the condition is true, can't seem to find the class responsible for sending emails and SendingEmailService seem to crash my macro , any help is appreciated.
thanks in advance.
Changing Client's Name in Smart Projects after creation using Macros
Hello , I am trying to change the client name after creating the smart project but it only changes from the outside not from the inside of the project dashboard
is there anyway I can change it in both places ? I tried to setNameInternal and it didnt work aswell
here is my code
import com.radzisz.xtrf.utils.velocity.VelocityTagUtils import com.radzisz.xtrf.model.project.Project import com.radzisz.xtrf.service.CustomerService import com.radzisz.xtrf.model.partner.customer.Customer class ChangeClient { def list; def params; VelocityTagUtils utils = new VelocityTagUtils(); ChangeClient(list, params){ this.list = list; this.params = params; } CustomerService customers = utils.getService("com.radzisz.xtrf.service.CustomerService") Customer newCustomer = customers.getByName("DTest2") def nameOfNewCustomer = newCustomer.getName() def runMacro() { String customerName list.each{Project project -> project.setCustomerInternal(newCustomer) project.getCustomer().setNameInternal(nameOfNewCustomer) } } } new ChangeClient(list, params).runMacro();
Classic projects
Can I still access classic projects and if so, how do I switch between smart projects and classic projects?
Has anyone created a macro to update the Project/Account/Sales Managers?
I'm hoping to be able to change the Project Manger (and/or account manager, sales manager, project coordinator) through a macro and trigger it via api. Has anyone done this? Does this seem doable? Thanks!
Can you create an external list of vendors to invite to a job via API?
We've been trying to figure out how we want to invite vendors to a job via the API and have been following this thread... https://xtrf.userecho.com/en/communities/8/topics/2164-can-you-select-vendors-through-api
Here's a similar question, but from a different angle.
Can I (or has anyone already done this??) create a dynamic external list of vendors with their XTRF IDs, and then use this list to invite them to new XTRF projects? So rather than create a vendor selection rule that is based off of XTRF filters, create a list that the rule pulls and executes upon? If this is possible, I assume it would have to be a macro, so, where/how would you execute this macro?
Any thoughts? Thanks!
Customer support service by UserEcho