Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
75 views

OrderItem Creation via Enterprise wsdl call

I am trying to create via Enterprise WSDL create call an OrderItem record related to an order. As per image below, inside my call i pass the OrderID, the PriceBook ID, Quantity and Line Description, ...
1
vote
1answer
94 views

Distribution of Salesforce Platform License for AppExchange App

We currently started selling an app through the AppExchange and I couldn't find any information as to what needs to be done in order to get Salesforce Platform Licenses. My understanding is that when ...
3
votes
2answers
113 views

Deduct from Record(s) on a “First in, First Out” Basis when multiple records created simultaneously - How does SOQL handle this with ORDER BY?

Background: My business performs remote training appointments with our customers, and they can be scheduled in any increment of 15 minutes. We track/deduct minutes from a lump-sum field on the ...
0
votes
2answers
100 views

how restrict access for object in communities

I have created a community where i need to restrict the access for Order object. I have created permission set and given "Order" object access : read and edit Also, selected permission set in ...
0
votes
0answers
51 views

Products to opportunities, and the SortOrder field

While adding products to an opportunity in Salesforce, you can not specify the values for the 'SortOrder' field on Opportunity Line Items. That is very weird, and is a feature requested more than 7 ...
0
votes
2answers
485 views

How can I Export from a report the record counts of Contacts, orders etc per account?

I have a giant spreadsheet with all our key accounts etc and we need to find out how many orders per account, how many contacts per account. On SF reports I can add a "Record Count" formula but when ...
1
vote
1answer
155 views

Best cheap Salesforce License for users with access order object only needed [closed]

We have more number of users consider 100 users or more. The user which will use only standard order object record. Now if we buy Salesforce license it will cost too much per month/user. So, is ...
2
votes
1answer
150 views

ToolingAPI bug? Dev Console only: No such column 'PoNumber' on entity 'Order'

According to the Docs for the standard Order Object, PoNumber is a valid field on the object. I have a query that references that field in an Apex class, and the class compiles, and the unit tests ...
5
votes
4answers
2k views

Reverse the order of map in Apex or VF

How can I loop through a Map or List in reverse order in VF? or Can I reverse the order of a map in Apex? Here is my code: String nsp = PackageUtils.namespacePrefix; Map<String, String&...
0
votes
1answer
1k views

Confused about OrderProducts, OrderItems, and Products when making orders in test class

I'm making a test class that creates 5 orders and upon insert, I get the error that you need to add products to orders. I've got... List<Product2> clothProds = [SELECT Id FROM Product2 WHERE ...
0
votes
1answer
842 views

Checked required fields, still getting an error that a required field is missing on Insert

I have the following and get an error on the insert: Order o1 = new Order(Name ='anOrder', Account = test, Status = 'Activated', EffectiveDate = date.today(), Program__c = clothing.id); ...
4
votes
0answers
70 views

How to use Reduction Orders with decimal / non-integer quantities?

I'm considering using Reduction Orders to model the partial refund of an annual service. Example: Create and Activate new Order A with one line, Quantity = 1, Price = $15000 Create and Activate ...
3
votes
2answers
629 views

Orders not visible to Customer Community users

Question in one line is - is there any option to make orders visible to customer community users keeping OWD to Private? Please read below for detailed problem. We have Customer Community User ...
0
votes
4answers
837 views

ORDER BY Autonumber is not working

In SOQL we are using ORDER BY a auto number field in a parent object. But the order is not proper. For Ascending order we are getting the following output For Descending order we are getting the ...
1
vote
2answers
1k views

Displaying month/year from createdDate in SOQL query

I am very new to Salesforce and struggling to get a query to return the data in the format I require - i.e pushing the results through Conga composer to feed a chart in a powerpoint template. The ...
0
votes
1answer
621 views

How to hide standard List Price field based on User Profile

I want to hide the standard List Price (UnitPrice) field from the Add Product screen (on standard Order object) for our Customer Community Users only. Use Case - We have customer community plus ...
1
vote
1answer
1k views

Newly created field not appearing on object filter criteria

I've created a new field in the Order object, it's a text field that is filled with a Name from another custom object. I want to use the text field in the filter but it doesn't appear in the list of ...
0
votes
1answer
321 views

Delete OrderItem Error

When I try to delete an OrderItem from an Order, I am getting a DML Mixed Exception. However, I am not updating any other object. Am I missing something? @istest private class ...
4
votes
1answer
8k views

Relationships of Opportunities, Quotes, Contracts and orders

We are using Opportunities, quotes, Contracts and Orders in our Org. This is a brand new instance of Salesforce and we are in the process of streamlining the sales and order process. The proposed ...
0
votes
1answer
40 views

Import Monthly Sales for any given contact [closed]

Hopefully someone can distill my options here. Goal is to for each contact (not account), import monthly sales figures. What's the ideal data model to pursue. I do not need item level details, just a ...
1
vote
1answer
893 views

Can I edit or remove universally require standard fields in Salesforce?

The Orders object in Salesforce has a status field that is a picklist. I tried to edit the field by adding more options, but the editing I can do is very limited and for some reason I can not add more ...
1
vote
1answer
171 views

“Deactivate” Order command on Visualforce page

On the Order object, how would one perform the Deactivate action in a Visualforce page? Is there a way to discover how Salesforce is performing the action when the button is pressed on the standard ...
4
votes
1answer
2k views

Standard Orders object on Community Builder

Any idea how can I expose the Orders tab from Community Builder Napili Template? I've got orders enabled, but I cannot find it from the list of objects when I'm adding a new Menu Item on the ...
1
vote
1answer
110 views

Modeling Abandoned Cart on Orders or Opportunities [closed]

I'd like to begin modeling abandoned carts inside our org. We can reliably push in data from the cart on our ecommerce platform at various stages throughout the checkout process, email the customer ...
2
votes
1answer
1k views

Nested IF Statements

We are moving to use X-Author to upload our planner information into Salesforce via their excel app. The excel spreadsheet has been set up prior and fields are pretty fixed. We are trying to map their ...
1
vote
0answers
106 views

Update Product Quantity on Hand when Order Products are Added to Order

We don't use opportunities or opp products. We use order and order products. I would like to update "Total on Hand" on the Product when products are added to the order and the order is activated. "...
0
votes
1answer
82 views

Is it possible to order records in a report using a field that isn't shown on it?

Title is self explanatory, but here's an example: I have an object that has a certain numeric field that is unique, and want to make a report using the said field to sort the lines. Is it possible ...
2
votes
1answer
58 views

Error on Trying to Change Order End Date

I've built out a custom ordering application where some profiles can manipulate the order params - status, line items, end date etc. The users are reporitng that they get an 'Entity locked down' ...
0
votes
1answer
770 views

How can I view “Orders” and/or “Product Orders” in Salesforce Lightning Experience?

When viewing our Salesforce account in non-lightning mode, "Orders" and "Product Orders" ( both built-in objects ) can be viewed. However when the UI is switched to the Lightning Experience, I'm ...
3
votes
1answer
1k views

Apexpages.currentPage().getUrl() is not returning the exact order of url params

I have implemented a code to get a URL parameters posted on custom site.The controller associated with custom site has Apexpages.currentPage().getUrl() method. For my implementation, It is very ...
2
votes
1answer
396 views

Clone order with products is carrying over order start and end dates to new order

We have an integrated solution with Salesforce and an internal solution that relies on the Order Start and End date on the apparent New Order page. It is currently loading too much information from ...
0
votes
1answer
161 views

PHP SOAP client: Cannot set price book to an order

I'm PHP Client library to push data to Salesforce (https://github.com/developerforce/Force.com-Toolkit-for-PHP) I'm trying to create a new order, as I understand, I will need to: Create an Order ...
1
vote
2answers
111 views

How to sort when we use aggregate function?

I have a formula field that orders a particular field values. Example: A field for employees profession, for each profession there is an equivalent number value like, "IT = 1, Doctor = 2". I'm using ...
11
votes
2answers
680 views

SOQL query returns inconsistent order despite ORDER BY statement

The following SOQL query is designed to return CampaignMember information by associated Contact.Name. The first time the SOQL query is run, it returns a list where two subsets of the CampaignMembers ...
1
vote
2answers
1k views

Convert Opportunity object data to Order object data

We've inadvertently adopted opportunity objects as what we internally understand as orders, how would I go about converting my opportunities into orders?
0
votes
1answer
634 views

Not able to access TotalPrice in OrderItem

Trying to write trigger on Order item .I have created new field called discount.I have to perform formula using trigger on TotalPrice(TotalPrice=Discount*TotalPrice).I am not able to access TotalPrice ...
1
vote
1answer
652 views

LAST_N_DAYS doesn't work correctly

I have selected all accounts with a few information and the lastmodifieddate of the opportunities. I ordered the join by the lastmodifieddate DESC LIMIT 1. This is fine so far, when I output the date ...
4
votes
1answer
73 views

Does Order Number have to be an autonumber?

Can the Order Number on an Order be something other than an autonumber? I want to set it to the order number from Shopify which is an alphanumeric value. Is this a a bad idea?
2
votes
2answers
3k views

How to Reset a Standard Auto Number Field?

Autonumber field increments when test class runs and note that in Spring14 salesforce has released an option not to increment when test class runs. Develop | Apex Test Execution | Options..., ...
1
vote
1answer
390 views

Customize “ Select Products to Reduce” button on Reduction Order

I am trying to customize the Select Products to Reduce button on Reduction Order but I don't see the button available on Order Product and also I don't see a way to remove the button from pagelayout. ...
7
votes
2answers
2k views

Is Changed operator in Process Builder

I am checking whether Order OwnerId is changed or not in Process buider.If Changed update related records. But getting below error when Order.Close_Date__c is updated through Workflow field update ...
11
votes
1answer
4k views

Controlled By Parent (OWD)

Order has lookup to Account,Contact,Contract,Quote and Order and when you set OWD of Order object as Controlled by Parent and there is no Master-Detail relationship on Order Object then who is the ...
1
vote
1answer
236 views

Field is not writeable: Order.IsReductionOrder

I am trying to update Order.IsReductionOrder to true from a trigger but getting below error. Field is not writeable: Order.IsReductionOrder It looks like field is read only from Order ...
0
votes
2answers
2k views

How to show error message on standard detail page from apex controller?

I have a button called Sync on Order object. I want to sync only those orderlineitems whose IsSynced field has value as 'No'. If there are no such orderlineitems then i want to display a message on ...
6
votes
2answers
6k views

Product2 field in OrderItem Object

When I ran below query in workbench/developer console SELECT product2 FROM OrderItem am getting below error No such column 'Product2' on entity 'OrderItem'. If you are attempting to use a custom ...
2
votes
1answer
2k views

List controllers are not supported for Order Item

I am trying to create a custom EDIT ALL list button on OrderItem (Order Product) with content source as Visualforce page and am getting below error. I don't want to use standard EDIT ALL button as I ...
1
vote
2answers
317 views

mass create orders in Salesforce with link to opportunities

I'm trying to mass create order objects with some opportunities data. I have no trouble to create those orders with the Dataloader or the developer workbench, but for some reason, the field "...
1
vote
1answer
587 views

Unable to save records in Order and Quote through Visualforce page

I'm creating a VF page for Standard objects Order and Quote which will be a replacement for standard new record creation page layout. Since both objects have mandatory Account and Opportunity fields, ...
1
vote
1answer
19 views

How can I infer contacts who have ordered a product through their account?

I have Accounts who order a number of products. Each Account has a number of Contacts. By default, all Contacts belonging to an Account can have access to the products that the Account has ordered. I ...
2
votes
1answer
28 views

How can I present display-friendly relationships?

I am creating an order management system in Salesforce. I have created a custom object called MyProducts which has the following fields: MyProductId (An autonumber field - MP-0001) Product Name ...