Bulk create Slack channels - channel

Is there a way to bulk create slack channels from a spreadsheet?
I have a list of hundreds of channel names that we would like to create along with it if it private or public and the member that needs to join

Related

Dialogflow Entity having more than 30,000 parameters

I want to get the utterance for the medicine name. I have more than 300k medicines but Dialogflow has a limit of only 30,000 parameters in an entity. Can I do something about it? Can I attach an external spread sheet with it?

Spring bulk update fields with id's matching the given list

I need to do multiple updates in my DB based on the provided id.Right now I am iterating the id List and calling the update function of my repository again and again.However this is not efficient.I want to know if there is a way I can do bulk updates in one rest call by passing the id List and the other new field value list as parameter.Thanks in advance for the help.
Right now I'm calling this method again and again to update the values.However this is not at all efficient:
#Transactional
#Modifying
#Query("UPDATE Student c SET c.rollNo= :rollNo WHERE c.id = :id")
void updateStudentRollNo(#Param("id") long id, #Param("rollNo") String rollNo);
If you have the Student entities where you call the method updateStudentRollNo, you may call repository.saveAll(students) , that will make the updates on list. The way you are trying to do is not possible, because each student have a different rollNo, so batch update like that can't be done.

Maintain Cross reference in SAP-MDG

I am new to SAP-MDG and I am trying to identify how can we store cross reference details in MDG.
I got to know about key mapping but that is not something that I understand.
My requirement is:
I have 10 applications sending data to me each having it's own app id and customer number, I want to store the mapping.
App -id --- Customer number from application ---- sap-id(at our end)
Is this something that can be done without a custom table?
Better place for get answers for your questions - sdn.sap.com (sap mdg community)
you can create this table like a data model (for example via reuse method) and save it in staging area sap mdg
you can use Z-table for store this data

Retrieving all blobs from opponent (iOS Content/Chat Modules)

How can I retrieve all blobs uploaded by 'opponent' (not just opponent.blobId)?
Is there any solution just like PagedRequest for currentUser's blob?
There is no base way to do this,
because all files can be private or something like this
I propose to do next: use Custom Objects API http://quickblox.com/developers/Custom_Objects
Create UserFiles or UserAlbum table and write all your files (blobx IDs i mean) to it which you want to open to users
Next, other users will be able to retrieve all files - just get all data from this table using filter user_id=

Database Model - SQL - Best Approach

I'm looking for help with part of a database design.
I have to Model the Database for a Group of Contacts and a Group of Distribution Lists.
Each Contact can be in many Distribution Lists and each Distribution List can have many Contacts. In a normal Instance, I could use a Junction table to achieve this solution.
But there's one more thing to add. Contacts have the option to receive notifications via two different methods which are SMS or Email.
A Contact can request to be sent notification via either or both methods.
The piece of the problem that I am stuck with, is that a Contact may wish to receive notifications differently depending on the specific distribution list.
So we have a problem like this :--
CONTACT A is in DL-A - Receives Notification via SMS
CONTACT A is in DL-B - Recieves Notification via Email & SMS.
I'm trying to avoid having more than one entry for a Contact in my Contacts Table, each contact should be unique.
Can Anyone help?
You could use another junction table:
contactid, distributionlistid, messagepreference
Messagepreference can be email or SMS. Two rows if they want both. New messaging types can be added with no changes to the DB. To be safe, use constants in your code to represent the values you will put into the columns.
Or, add sendemail and sendsms columns to the original junction table, but this has the drawback that you have to change DB structure if you introduce a new messaging type.
So you can add to fields in the junction table:
ContactsDistributions(ContactId, DistributionId, SMSFlag, EmailFlag)
in order to specify the type of notification choosen by the contact for each distribution.
You can add one more field in junction table which will represent how given contact will receive notification from given distribution list.
In this case I would add two fields to the junction table SMS and email both boolean and set to true if and only if they wish to receive notification in that matter. This allows the notifications to be set differently for combination list and contact.
Also depending on how you want to deal with removal from lists you could add a constraint on the junction table so that at least one of the two fields is true so that a notification is always sent although say in google groups I do have access to some lists which I have chosen not to get notifications from.