I am trying to send e-mail from netsuite using API function nlapiMergeRecord in suitelet.
But the problem is i am not being able to search the Internal ID of templates that i will be using.
Can anyone tell me how can i get Internal ID of an e-mail template?
Thanks in advance.
Here is the easiest way I have found.
First, make sure your preferences has show internal ID. To do this, go Home>Set Preferences>under the General Tab on the right make sure "Show Internal IDs" is checked.
If this is done, then go to Documents>Templates>Email Templates and it will show the internal ID in the list.
If you recently made the Template, a quick-tip is to sort by internal ID descending in the list and the most recent Template will be shown. If it isn't a new template, I use just good ole' Ctrl+F to search my list of Templates if I know it's name.
Please mark this answer as "correct" if it helped you do what you needed.
Related
I am having a problem finding out an id of a sublist. I am using SuiteScript 1.0. For instance, I need to list the components of an assembly item record, how do I find out the list id and the "type and field name to use in the nlapiGetCurrentLineItemValue or nlapiGetCurrentLineItemValue methods. What I am looking for is how now and in the future when presented with a sublist, do I go about finding the ids of the objects needed. I have internal ids turned on but that does not help in the sublist view. What is the best way to get this information when I need it? thanks for any help you may give.
You can use nlapiGetAllLineItems() to get an array of all the sublists. You may need to load the record first and do record.getAllLineItems()
I have found the most useful method for figuring out internalids is to run nlapiLoadRecord(..) in your Browser Console and examine the resulting object. Another trick is the add &xml=T to the end of the URL of the record, which displays the record in XML format. NetSuite also documents most of the internalids in the Records Browser.
In this case you use console in Google Chrome. Open the Specific Assembly Item Record page and Press F12 and select console.After give following code
nlapiLoadRecord('assemblyitem', 90088(id for specific record));
after show result in console. Select linefields and Item. Now it show the fields of sublist. If You have any doubt let me know.
I have built a website (with MODX) where some products are managed and displayed via the articles addon. The products should have a custom ordering but I don't know how to use a template variable for that.
If I enter the name of the TV in the "Sort Field" field nothing is shown at all.
So is it somehow possible to use a TV there?
Or is there another way to achive a custom ordering (note that I need the summary and date fields, so I cant't abuse them for that)?
You can do this by using getResource package. Look at sorbyTV, sortdirTV, sortbyTVType parameters in manual:
http://rtfm.modx.com/extras/revo/getresources#getResources-SelectionProperties
Objective: Create a Workflow that Rename a Document in the Library.
My Document Library is in a sub site, is a child. This library have two lookup columns, and they refer to a list in the main site, the parent. That is, a library that have lookup field a list in other site. These lookup field, I will use to rename a file.
Problem: in my worflow every action that use [%CurrentItem:LookupField%], it does not follow. The workflow stops. Fail.
I can't understand the origin of that error.
Any information will be helpfull.
Workaround: Use REST CALL as you can see in the know issue. http://office.microsoft.com/en-us/help/sharepoint-server-2013-known-issues-HA102919021.aspx?ss-src=featuredhelp&ss=3f1a5755-0dad-4a34-8758-904329f5e4c9
It's a know issue, as you can see in the o365 forum.
community.office365.com/en-us/f/154/p/206482/754001.aspx
Know issues of SPD 2013:http://office.microsoft.com/en-us/help/sharepoint-server-2013-known-issues-HA102919021.aspx?ss-src=featuredhelp&ss=3f1a5755-0dad-4a34-8758-904329f5e4c9
Workaround: Use Rest Call Action.
I need the title, that is in my lookup field, but my workflow cant get this information. No if this lookup field is looking for a list in other level site.
So I will use REST CALL to my library, and get THE ID of my lookup field, and then i will do other REST CALL to that list, using the ID, and it will return my title of this item. :D
Looks easy #_# but i am not sure how to do a rest call from the workflow D:
I failed #_#... Now when I have to request something in other list, i got "Unauthorized"... really? D:
FINAL SOLUTION: We did it... You have to set app permissions for your workflow. you Can see how do it here: http://msdn.microsoft.com/en-us/library/office/jj822159(v=office.15).aspx
Don't forget: If you want to access a list in a TOP level site (main), you have to set this permission there, in the top level site. Why i am saying it? because, I set this permission on the same site where my workflow started, so when it wanted to request something in the main site, my request fail. So pay atection when do it. :)
If you have problems, count with me. \o/
Here is the requirement:
Anonymous Users need to enter some info into InfoPath on line form.
They should not see the Save as and the file name prompted after they hit the Save.
Should I find a way to auto generate name for InfoPath / write some code for this?
I also need to create a workflow when a new form is created [send an email].
Can anyone help me on this?
Auto generate Name:
I use a datetime and remove the fomatting. It works to a second it depends on on you application. It works for most cases for us.
Here us a link to find an auto number:
http://www.bizsupportonline.net/browserforms/autonumber-infopath-form-submitted-sharepoint-library.htm
As for the work flow, you could just have an "alert me" on the document libray. Simple Is always best.
CJ
You can submit a form using a data connection and rules. When you create your data connection in the designer, you will get a dialog that will give you a chance to specify the name of the file. You can use values from the fields in the form, built-in functions for date/times, math calculations, etc...
That approach is described here:
http://blogs.msdn.com/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx
I have created a Custom Edit Form for a custom list using SharePoint designer. I need to check that the current user is the author of the list item before displaying the form as only the author should be able to edit this content. I don't have server access so want to do this in the form itself using XSL. So far, I haven't been able to retrieve the Author / Created By value. Does anyone know how to get at this value?
Thanks for your help
Iain
Update:
I can see now that the Edit Form is using a datasource which basically returns a view containing all fields in the content type. "Author" is not part of the content type (which is a custom one). I can't see any way of adding the Author to the content type. Does anyone know how this can be achieved as i think this would solve the problem.
Cheers,
Iain
Isnt it possible to use the View/Edit access settings for the list? You find them under "List settings -> Advanced Settings" or somthing like that.
To bar someone form editing an item he should not, I would not edit the edit form of the item but do this by the item's permissions set. Therefore I would add an event handler to the list which changes the list items permissions after its creation, so that only the creator of the document has the permission to edit it.
Informations about event receivers can be found on Brian Wilson's blog.
I think JMD is right. You can do this without a custom form or any coding. From the list's menu bar select Settings -> List Settings -> Advanced Settings
Once there, you should see an option in Item Level Permissions to restrict edit access to only the item's author.